#1375: ByteString’s “lines” eats empty lines
-----------------------------+----------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.6.1
Severity: normal | Keywords:
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
-----------------------------+----------------------------------------------
I’d expect this to be true for ByteStrings
map B.unpack . B.lines . B.pack == Prelude.lines
But it seems that B.lines will merge several consecutive newlines. B.split
'\n' works as it should, though.
Thanks,
Joachim
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1375>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs