16 Aug
2006
16 Aug
'06
6:56 a.m.
Hi! 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.