[Haskell-cafe] chr/ord?

Tim Wawrzynczak inforichland at gmail.com
Tue Apr 28 21:13:54 EDT 2009


Michael, those functions are not in the Prelude, they're in Data.Char.

On Tue, Apr 28, 2009 at 8:08 PM, michael rice <nowgate at 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
>
> ===============
>
> [michael at localhost ~]$ ghci
> GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
> Loading package ghc-prim ... linking ... done.
> Loading package integer ... linking ... done.
> Loading package base ... linking ... done.
> Prelude> chr 65
>
> <interactive>:1:0: Not in scope: `chr'
> Prelude> ord 'A'
>
> <interactive>:1:0: Not in scope: `ord'
> Prelude>
>
>
>
>
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090428/b72867e4/attachment.htm


More information about the Haskell-Cafe mailing list