unicode support
Antonio Regidor GarcĂa <[email protected]> Sun, 8 May 2005 10:28:01 +0200 (CEST)
| Newsgroups | gmane.comp.lang.haskell.nhc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to implement unicode support for nhc98, but I'm confused by th=
is code:
---------------
module Prelude(Enum(..)) where
instance Enum Char where
enumFrom n =3D enumFromTo n (toEnum 255)
enumFromThen n n' =3D enumFromThenTo n n' (toEnum 255)
toEnum c =3D toEnum c -- MAGIC
fromEnum c =3D fromEnum c -- MAGIC
---------------
What does this "MAGIC" mean? Do the right hand sides use the prelude func=
tions of the compiler
that nhc is built with, or the internal representation of chars is define=
d in other place?
Regards,
Antonio Regidor Garc=EDa
=09
______________________________________________=20
Renovamos el Correo Yahoo!=20
Nuevos servicios, m=E1s seguridad=20
http://correo.yahoo.es