[Haskell-cafe] Has character changed in GHC 6.8?

Johan Tibell johan.tibell at gmail.com
Wed Jan 23 09:20:47 EST 2008


On Jan 23, 2008 2:11 PM, Magnus Therning <magnus at therning.org> wrote:
> Yes, this reflects my recent experience, Char is not a good representation
> for an 8-bit byte.  This thread came out of my attempt to add a module to
> dataenc[1] that would make base64-string[2] obsolete.  As you probably can
> guess I came to the conclusion that a function for data encoding with type
> 'String -> String' is plain wrong. :-)

Yes. Functions that deal with bytes shouldn't use Char. Char should be
seen as and ADT representing Unicode code points. It has nothing to do
with bytes.

-- Johan


More information about the Haskell-Cafe mailing list