On Mon, Oct 12, 2009 at 6:37 PM, michael rice <nowg...@yahoo.com> wrote:
> transform :: IO () > transform = putStrLn "What is your digit string?" > >> getLine > >>= \str -> return ('9':str) > >>= \str -> return (read str :: Int) > >>= \i -> putStrLn $ "The number is " ++ show i > This code works perfectly for me. What problem are you seeing specifically? Cheers, /Niklas
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe