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

Simon Marlow simonmar at microsoft.com
Fri Jan 7 08:43:36 EST 2005


On 07 January 2005 12:30, Malcolm Wallace wrote:

> "Simon Marlow" <simonmar at microsoft.com> writes:
> 
>> Here's a summary of the state of Unicode support in GHC and other
>> compilers.  There are several aspects:
>> 
>>  - 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'.

>>  - Can you use (some encoding of) Unicode for your Haskell source
>>    files? I don't think this is true in any Haskell compiler right
>> now. 
> 
> Many years ago, hbc claimed to be the only compiler with support for
> this. 

What encoding(s) did hbc allow in source files?  The docs only mention
unicode characters inside character & string literals.

Cheers,
	Simon


More information about the Haskell-Cafe mailing list