-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Text paragraph formatting -- -- A paragraph formatting utility. Provided with input text that is -- arbitrarily split amongst several strings, this utility will reformat -- the text into paragraphs which do not exceed the specified width. -- Paragraphs are delimited by blank lines in the input. @package para @version 1.0 -- | A paragraph formatting utility. Provided with input text that is -- arbitrarily split amongst several strings, this utility will reformat -- the text into paragraphs which do not exceed the specified width. -- Paragraphs are delimited by blank lines in the input. -- -- This function is roughly equivalent to the Unix fmt utility. -- -- Features: -- -- module Text.Format.Para -- | The formatParas function accepts an arbitrarily-divided list of -- Strings along with a width and optional indentation/prefix and returns -- an array of strings representing paragraphs formatted to fit the -- specified width and indentation. formatParas :: Int -> Maybe String -> [String] -> [String]