Text in Haskell: A PROPOSAL

Axel Simon A.Simon@ukc.ac.uk
Thu, 8 Aug 2002 09:29:02 +0100


On Wed, Aug 07, 2002 at 02:05:08PM -0400, Ken Shan wrote:
> On 2002-08-07T18:26:49+0100, Axel Simon wrote:
> In an earlier message, I suggested that Char mean "C char", and that a
> new type CodePoint be created to mean "Unicode code point".  I would be
> perfectly happy -- in fact, happier personally -- if Char were to mean
> "Unicode code point" and a new type CChar were created to mean "C char".
> Either way, the (function types in the) libraries must be cleaned up to
> maintain the distinction between "C char" and "Unicode code point".
I agree. Haskell's Char is a Unicode code point, all the file and socket 
functions need to be augmented with encodings and decodings.

> Furthermore, Haskell programs must be able to access both notions.
I agree that it might be useful. But fiddeling with UTF-8 should mean 
using [Word8].

Axel.