[Haskell-cafe] Word8 literals in ByteString haddock?

Niklas Hambüchen mail at nh2.me
Wed Mar 27 01:50:21 CET 2013


Hey,

according to
http://hackage.haskell.org/packages/archive/bytestring/0.10.2.0/doc/html/Data-ByteString.html#v:split
I can write:

split '\n' "a\nb\nd\ne"

Can I really do that? I don't know of a way to make a '\n' literal be a
Word8, so maybe these Haddocks are wrong? I guess they would apply for
Data.ByteString.Char8, but this is Data.ByteString. Or is there a way?

Niklas



More information about the Haskell-Cafe mailing list