[Haskell] Bug in experimental Unicode support for Hugs?

Ross Paterson ross at soi.city.ac.uk
Fri May 28 11:48:06 EDT 2004


On Fri, May 28, 2004 at 01:20:32PM +0100, Graham Klyne wrote:
> I've noticed a discrepancy in by version of Hugs with experimental Unicode 
> support enabled, based on the 20040109 codebase.  It's exemplified by this:
> 
> [[
> Main> '\x10ffff'
> '\1114111'
> Main> maxBound::Char
> '\255'
> Main>
> ]]
> 
> It appears that this value is hardcoded in Hugs/Prelude.hs, rather than 
> obtained from the runtime environment in some way.

I think you're using an old version of Hugs/Prelude.hs.  You need to
copy the new versions of files in libraries/Hugs from the source bundle
to wherever Hugs is looking for them (-q will tell you where).


More information about the Haskell mailing list