[project @ 1999-02-17 21:54:48 by simonpj]
authorsimonpj <unknown>
Wed, 17 Feb 1999 21:54:48 +0000 (21:54 +0000)
committersimonpj <unknown>
Wed, 17 Feb 1999 21:54:48 +0000 (21:54 +0000)
Reinstate specialisations for fromIntegral and realToFrac

ghc/lib/std/PrelNumExtra.lhs

index 4fcea85..291c745 100644 (file)
@@ -332,7 +332,7 @@ instance  Show Double  where
 %*********************************************************
 
 \begin{code}
-{- SPECIALIZE fromIntegral ::
+{-# SPECIALIZE fromIntegral ::
     Int                -> Rational,
     Integer    -> Rational,
     Int        -> Int,
@@ -346,7 +346,7 @@ instance  Show Double  where
 fromIntegral   :: (Integral a, Num b) => a -> b
 fromIntegral   =  fromInteger . toInteger
 
-{- SPECIALIZE realToFrac ::
+{-# SPECIALIZE realToFrac ::
     Double     -> Rational, 
     Rational   -> Double,
     Float      -> Rational,