lines +base

lines :: String -> [String]
base Prelude, base Data.List, base Data.String
lines breaks a string up into a list of strings at newline characters. The resulting strings do not contain newlines.
LineSeparator :: GeneralCategory
base Data.Char
Zl: Separator, Line
unlines :: [String] -> String
base Prelude, base Data.List, base Data.String
unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.