[Haskell-cafe] Rewriting char

Antoine Latter aslatter at gmail.com
Sat Sep 29 12:02:03 EDT 2007


You may want to look at the library function `toEnum'

toEnum :: (Enum a) => Int -> a

since Char is an Enum, the following code should work just fine:

> toEnum 70 :: Char


More information about the Haskell-Cafe mailing list