Ticket #1375 (closed bug: fixed)
ByteString’s “lines” eats empty lines
| Reported by: | guest | Owned by: | dons@… |
|---|---|---|---|
| Priority: | high | Milestone: | 6.8.1 |
| Component: | libraries/base | Version: | 6.6.1 |
| Keywords: | Cc: | dons@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | bytestring006 | Blocked By: | |
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
