[Haskell-cafe] Rewriting char

2007-09-29 Thread PR Stanley
Hi Any advice on writing intToChar? I'm not looking for the code; only sound advice on writing the function in good FP style. Thanks, Paul ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Rewriting char

2007-09-29 Thread Antoine Latter
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 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org