
29 Apr
2009
29 Apr
'09
4:58 a.m.
Tim Wawrzynczak
On Tue, Apr 28, 2009 at 8:08 PM, michael rice <[1]nowgate@yahoo.com> wrote:
Hi,
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' 65 Prelude> toEnum 42::Char '*' -- Jón Fairbairn Jon.Fairbairn@cl.cam.ac.uk http://www.chaos.org.uk/~jf/Stuff-I-dont-want.html (updated 2009-01-31)