projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ef256c
)
[project @ 2000-06-12 17:05:35 by panne]
author
panne
<unknown>
Mon, 12 Jun 2000 17:05:35 +0000
(17:05 +0000)
committer
panne
<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
patch
|
blob
|
history
diff --git
a/ghc/tests/io/should_run/io017.hs
b/ghc/tests/io/should_run/io017.hs
index
cba9fbd
..
4f8ec1f
100644
(file)
--- a/
ghc/tests/io/should_run/io017.hs
+++ b/
ghc/tests/io/should_run/io017.hs
@@
-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 []