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:
d6a9171
)
[project @ 2001-03-29 13:33:46 by simonmar]
author
simonmar
<unknown>
Thu, 29 Mar 2001 13:33:46 +0000
(13:33 +0000)
committer
simonmar
<unknown>
Thu, 29 Mar 2001 13:33:46 +0000
(13:33 +0000)
use fromIntegral instead of fromInt
ghc/tests/numeric/should_run/arith006.hs
patch
|
blob
|
history
diff --git
a/ghc/tests/numeric/should_run/arith006.hs
b/ghc/tests/numeric/should_run/arith006.hs
index
8e7ff88
..
b837692
100644
(file)
--- a/
ghc/tests/numeric/should_run/arith006.hs
+++ b/
ghc/tests/numeric/should_run/arith006.hs
@@
-1,6
+1,4
@@
-- !!! printing Floats; was a bug in hbc (reported by andy)
--
-import Int( Num(fromInt) )
-
-main = print ((fromInt 42) :: Float)
+main = print ((fromIntegral (42 :: Int)) :: Float)