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.
_______________________________________________ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell