lines +bytestring

lines :: ByteString -> [ByteString]
bytestring Data.ByteString.Char8
lines breaks a ByteString up into a list of ByteStrings at newline Chars. The resulting strings do not contain newlines.
lines :: ByteString -> [ByteString]
bytestring Data.ByteString.Lazy.Char8
lines breaks a ByteString up into a list of ByteStrings at newline Chars. The resulting strings do not contain newlines. As of bytestring 0.9.0.3, this function is stricter than its list cousin.
unlines :: [ByteString] -> ByteString
bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy.Char8
unlines is an inverse operation to lines. It joins lines, after appending a terminating newline to each.