[project @ 2001-03-29 13:33:46 by simonmar]
authorsimonmar <unknown>
Thu, 29 Mar 2001 13:33:46 +0000 (13:33 +0000)
committersimonmar <unknown>
Thu, 29 Mar 2001 13:33:46 +0000 (13:33 +0000)
use fromIntegral instead of fromInt

ghc/tests/numeric/should_run/arith006.hs

index 8e7ff88..b837692 100644 (file)
@@ -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)