fromEnum (c :: Char)

Serge D. Mechveliani mechvel at
Wed Sep 9 07:46:04 EDT 2009

I need to convert  Char <-> Int  in a possibly _standard_ way for 
Haskell -- and also in an efficient way. In particular, it must not 
spend 100 comparisons in a look through the listing of Char.

I use               ord :: Char -> Int  and  chr :: Int -> Char.
Is this all right?
Thank you in advance for advice,

Serge Mechveliani
mechvel at

More information about the Glasgow-haskell-users mailing list