Safe Haskell | None |
---|---|
Language | Haskell2010 |
Darcs.Util.Text
Text construction.
Text formatting.
formatText :: Int -> [String] -> String #
Take a list of paragraphs and format them to the given line length, with a blank line between paragraphs.
formatParas :: Int -> [String] -> [String] #
formatPara :: Int -> [[a]] -> [[[a]]] #
Take a list of words and split it up so that each chunk fits into the specified width when spaces are included. Any words longer than the specified width end up in a chunk of their own.
chompTrailingNewline :: String -> String #
Text processing
breakCommand :: String -> (String, [String]) #