base-compat-0.9.1: A compatibility layer for base
Data.String.Compat
Synopsis
type String = [Char]
A String is a list of characters. String constants in Haskell are values of type String.
String
lines :: String -> [String]
lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.
lines
words :: String -> [String]
words breaks a string up into a list of words, which were delimited by white space.
words
unlines :: [String] -> String
unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.
unlines
unwords :: [String] -> String
unwords is an inverse operation to words. It joins words with separating spaces.
unwords