[project @ 2000-06-12 17:05:35 by panne]
authorpanne <unknown>
Mon, 12 Jun 2000 17:05:35 +0000 (17:05 +0000)
committerpanne <unknown>
Mon, 12 Jun 2000 17:05:35 +0000 (17:05 +0000)
Added type signature to resolve ambiguity.

ghc/tests/io/should_run/io017.hs

index cba9fbd..4f8ec1f 100644 (file)
@@ -6,7 +6,7 @@ main =
       readLine                                          >>= \ x1 -> 
       putStr   "Enter another integer: "                >>
       readLine                                          >>= \ x2 -> 
-      putStr  ("Their sum is " ++ show (read x1+ read x2) ++ "\n")
+      putStr  ("Their sum is " ++ show (read x1 + read x2 :: Int) ++ "\n")
 
  where readLine = isEOF                                 >>= \ eof ->
                   if eof then return []