[Haskell] Problem with types.

Szymon Ząbkiewicz zombek2 at gmail.com
Wed Aug 16 02:56:33 EDT 2006

I'm new to Haskell and FP so i've got some problems. I wrote this code :

getNr :: Int -> Int
getNr x = do
    putStrLn ("enter " ++ x ++ " number:")
    nr <- getLine
    return nr

And when I try to load it to GHCi I get an error (there is also plenty of
others but they look the same):

couldn't match Int against t t1

Help needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell/attachments/20060816/f67e3f3d/attachment.htm

More information about the Haskell mailing list