Alternative 'lines' implementation that understands CR-LF and CR
|Latest on Hackage:||0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Provides an alternative implementation of the
Prelude.lines function that
treats the following sequences as newline characters:
"\r"(Macintosh style, before OS X)
Haskell's IO system supports both platform-specific line ending conversion
(by opening the file in "text mode"), and explicit setting of the newline
mode for input and output (see
If you don't know the line ending format in advance, you would have to open the file and detect the newline format manually.
ByteString currently honors neither of these; see http://stackoverflow.com/questions/6837628.