
6 Apr
2010
6 Apr
'10
1:29 p.m.
Mads Lindstrøm
It may seem unfair that I put byte-strings and char-strings in the same bucket, but libraries do use byte-strings to contain characters. For example, Parsec has a [Char] and a bytestring interface.
It bears noting that Data.ByteString and Data.ByteString.Char8 are just different interfaces to the same data type (same goes for the .Lazy versions). Once upon a time I forked bytestring to use a phantom type tag to separate different encodings (including many other 8-bit encodings than the Char8 one), but although I still think this is a good idea, the code is long dead and gone now. -k -- If I haven't seen further, it is by standing in the footprints of giants