
1 Jun
2007
1 Jun
'07
5:57 a.m.
Ashutosh,
ERROR file:.\-as.hs:5 - Unresolved top-level overloading *** Binding : main *** Outstanding context : (Read c, Read b, Show c, Show b)
Add an type annotation: main = do j <- readFile "sig1.key" let (x,y) = (read j) :: (Int, Int) -- <----- putStrLn ("value=" ++ (show (x,y))) Cheers, Stefan