Re: [Haskell-cafe] Hugs vs GHC (again) was: Re: Some randomnewbiequestions
Malcolm Wallace wrote: 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., \u. Well, in that case, nhc98 also supports Unicode in source files, identically to hbc. Well, you have to support it all the way through, and generate suitable mangled identifiers in the output, but I presume you do. -- Lennart ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hugs vs GHC (again) was: Re: Some randomnewbiequestions
"Simon Marlow" <[EMAIL PROTECTED]> 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., \u. Well, in that case, nhc98 also supports Unicode in source files, identically to hbc. Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Hugs vs GHC (again) was: Re: Some randomnewbiequestions
Simon Marlow wrote: 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. The Java encoding, i.e., \u. -- Lennart ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RE: [Haskell-cafe] Hugs vs GHC (again) was: Re: Some randomnewbiequestions
On 07 January 2005 12:30, Malcolm Wallace wrote: > "Simon Marlow" <[EMAIL PROTECTED]> 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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe