[Haskell-cafe] Abstracting ByteStrings

Chad Scherrer chad.scherrer at gmail.com
Wed Jan 23 14:19:21 EST 2008


> Careful. ByteString is an alternative to [Word8]. Converting [Char] to
> ByteString and back requires an encoding. (Unfortunately, the only encoding
> that comes with the bytestring package is lossy.)

Ahh, good point. I guess I almost always just use them to read ASCII,
so it hasn't been an issue.

But for numeric types, I think this wouldn't be so much of an issue,
since the format is more uniform.

Chad


More information about the Haskell-Cafe mailing list