chr and ord not in standard prelude

Mark Hills mhills at cs.uiuc.edu
Fri Mar 9 15:46:13 EST 2007


It looks like these are in module Char:

> ghci
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
Prelude> Char.chr 65
'A'
Prelude> Char.ord 'A'
65

Colletta, Edward wrote:
>
> When I try to use functions chr or ord, I get a not in scope error.
> If I ":browse Prelude" I do not see these functions.  Is there another
> module I should load?
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>   



More information about the Glasgow-haskell-users mailing list