Skip to content

ByteString’s “lines” eats empty lines

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

Trac metadata
Trac field Value
Version 6.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information