
25 Apr
2006
25 Apr
'06
8:14 a.m.
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