word-wrap-0.1.1: A library for word-wrapping
Text.Wrap
Synopsis
wrapTextToLines :: Int -> Text -> [Text] Source #
Wrap text at the specified width. Newlines and whitespace in the input text are preserved. Returns the lines of text in wrapped form. New lines introduced due to wrapping will have leading whitespace stripped.
wrapText :: Int -> Text -> Text Source #
Like wrapTextToLines, but returns the wrapped text reconstructed with newlines inserted at wrap points.
wrapTextToLines