From 06bab813a079bf70d62c9d762c369c29459179d8 Mon Sep 17 00:00:00 2001 From: simonpj Date: Mon, 30 Aug 1999 09:16:47 +0000 Subject: [PATCH] [project @ 1999-08-30 09:16:47 by simonpj] 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghc/lib/std/Prelude.lhs b/ghc/lib/std/Prelude.lhs index 401e5ca..0b9f102 100644 --- a/ghc/lib/std/Prelude.lhs +++ b/ghc/lib/std/Prelude.lhs @@ -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(..), -- 1.7.10.4