logo       

Re: Hugs vs GHC (again) was: Re: Some randomnewbiequestions: msg#00099

lang.haskell.cafe

Subject: Re: Hugs vs GHC (again) was: Re: Some randomnewbiequestions

"Simon Marlow" <simonmar@xxxxxxxxxxxxx> 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.

Regards,
Malcolm


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise