[project @ 1999-08-30 09:16:47 by simonpj]
authorsimonpj <unknown>
Mon, 30 Aug 1999 09:16:47 +0000 (09:16 +0000)
committersimonpj <unknown>
Mon, 30 Aug 1999 09:16:47 +0000 (09:16 +0000)
Num( fromInt ) and Integral( toInt ) are not Haskell 98, and so they
should be exposed only by GlaExts, not by Prelude.

ghc/lib/std/Prelude.lhs

index 401e5ca..0b9f102 100644 (file)
@@ -43,9 +43,11 @@ module Prelude (
     Ord(..), 
     Enum(..),
     Bounded(..), 
-    Num((+), (-), (*), negate, abs, signum, fromInteger, fromInt{-glaExt-}),
+    Num((+), (-), (*), negate, abs, signum, fromInteger),
+       -- The fromInt method is exposed only by GlaExts
     Real(..),
-    Integral(quot, rem, div, mod, quotRem, divMod, toInteger, toInt{-partain-}),
+    Integral(quot, rem, div, mod, quotRem, divMod, toInteger),
+       -- The toInt method is exposed only by GlaExts
     Fractional(..),
     Floating(..),
     RealFrac(..),