[Haskell-cafe] Re: chr/ord?
jon.fairbairn at cl.cam.ac.uk
Wed Apr 29 04:58:22 EDT 2009
Tim Wawrzynczak <inforichland at gmail.com> writes:
> On Tue, Apr 28, 2009 at 8:08 PM, michael rice <nowgate at yahoo.com>
> My Prelude docs must be out of date because chr and ord don't seem to be
> there. How do I access these functions?
> Michael, those functions are not in the Prelude, they're in Data.Char.
But they're not really necessary anyway:
Prelude> fromEnum 'A'
Prelude> toEnum 42::Char
Jón Fairbairn Jon.Fairbairn at cl.cam.ac.uk
http://www.chaos.org.uk/~jf/Stuff-I-dont-want.html (updated 2009-01-31)
More information about the Haskell-Cafe