[Haskell-beginners] ord

Paul Johnston paul.a.johnston at manchester.ac.uk
Tue Aug 26 05:39:42 EDT 2008


Hi
Using the book by Hutton and in chapter 5 it talks about 'ord' and 'chr'
being in the standard prelude.

paulj at opensolaris4:~$ ghci
GHCi, version 6.8.3: http://www.haskell.org/ghc/  :? for help
Loading package base ... linking ... done.
Prelude> ord 3

<interactive>:1:0: Not in scope: `ord'
Prelude> chr 67

<interactive>:1:0: Not in scope: `chr'
Prelude>

They seem to do what you would expect from their perl counterparts
Any ideas?

Cheers Paul


More information about the Beginners mailing list