Data.ByteString candidate 3

Donald Bruce Stewart dons at cse.unsw.edu.au
Tue Apr 25 08:14:18 EDT 2006


simonmarhaskell:
> Donald Bruce Stewart wrote:
> 
> >The code has been partioned into:
> >    Data.ByteString         a Word8 only layer. All functions are in terms 
> >    of Word8
> >    Data.ByteString.Char    provides an ascii/byte-Char layer over the 
> >    Word8 layer.
> 
> Ok, but where would we put a UTF8 version of the Char layer?  I'm 
> thinking that "Latin1" would be more correct than "Char", and leaves 
> room for adding UTF8 and other encodings later.

Ok. Einar had some concerns that Latin1 wasn't the most accurate, as he
uses the Char ops for more general purposes. But Data.ByteString.Latin1
would probably be ok for me. Or Data.ByteString.Char8 perhaps.

-- Don



More information about the Libraries mailing list