portable-lines-0.1: Alternative 'lines' implementation that understands CR-LF and CR

Text.PortableLines.ByteString.Lazy

Synopsis

Documentation

lines8 :: ByteString -> [ByteString]Source

Like the lines function from Data.ByteString.Lazy.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.