[Haskell-cafe] Hugs vs GHC (again) was: Re: Some randomnewbiequestions

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Fri Jan 7 12:10:10 EST 2005

"Simon Marlow" <simonmar at microsoft.com> writes:
> >>  - Can the Char type hold the full range of Unicode characters?
> >>    This has been true in GHC for some time, and is now true in Hugs.
> >>    I don't think it's true in nhc98 (please correct me if I'm wrong).
> > 
> > You're wrong :-).  nhc98 has always had 32-bit characters internally.
> I checked the nhc98 sources, and it seems that maxBound::Char is '\255'.

Yes, but nothing prevents you from creating a larger character by e.g.
    (toEnum 0x12345678) :: Char

Lennart writes:
> > What encoding(s) did hbc allow in source files?  The docs only mention
> > unicode characters inside character & string literals.
> The Java encoding, i.e., \uXXXX.

Well, in that case, nhc98 also supports Unicode in source files,
identically to hbc.


More information about the Haskell-Cafe mailing list