- lines8 :: ByteString -> [ByteString]
Documentation
lines8 :: ByteString -> [ByteString]Source
Like the lines
function from Data.ByteString.Char8, but treat the
"\r\n"
and "\r"
sequences as newlines too, not just "\n"
.
Input is assumed to be in ASCII or an ASCII-compatible encoding (at least with respect to newline characters). For example, UTF-8 is fine, but UTF-16 is not.