[GHC] #1375: ByteString’s “lines” eats empty lines

GHC trac at galois.com
Thu May 24 04:59:11 EDT 2007


#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
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list