lines package:bytestring

lines breaks a ByteString up into a list of ByteStrings at newline Chars ('\n'). The resulting strings do not contain newlines. Note that it does not regard CR ('\r') as a newline character.
lines lazily splits a ByteString into a list of ByteStrings at newline Chars ('\n'). The resulting strings do not contain newlines. The first chunk of the result is only strict in the first chunk of the input. Note that it does not regard CR ('\r') as a newline character.
unlines joins lines, appending a terminating newline after each. Equivalent to concat . Data.List.concatMap (\x -> [x, singleton '\n']).