只是想知道如何在haskell中获得字符的ascii值?我试图在ghci中使用'ord'函数,基于我在这里阅读的内容:
http://haskell.org/ghc/docs/6.12.2/html/libraries/base-4.2.0.1/Data-Char.html#6
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> ord 'a'
<interactive>:1:0: Not in scope: `ord'
Prelude>
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?