¿Preguntándome cómo obtener el valor ascii del personaje en haskell? He intentado utilizar la función 'ord' en ghci, basado en lo que he leído aquí:¿Cómo obtener el valor ascii del personaje en haskell?
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>
¿Qué estoy haciendo mal?
': module + Data.Char' (en GHCi) o' import Data.Char' (en su archivo fuente). –
@Travis Brown: puede hacer 'import Data.Char' en ghci también – newacct
@newacct: Cool-No lo sabía. 'calificado' & c. no funciona, sin embargo, al parecer. –