#ifdef's for Hugs, which only allows one import in the Prelude at the moment.
-- Restore export of (:) until we get to 5.05
[]((:), []), -- Not legal Haskell 98;
-- ... available through built-in syntax
-- Restore export of (:) until we get to 5.05
[]((:), []), -- Not legal Haskell 98;
-- ... available through built-in syntax
+ module Data.Tuple, -- Includes tuple types
()(..), -- Not legal Haskell 98
(->), -- ... available through built-in syntax
#endif
()(..), -- Not legal Haskell 98
(->), -- ... available through built-in syntax
#endif
-
- module Data.Tuple,
- -- Includes tuple types + fst, snd, curry, uncurry
+#ifdef __HUGS__
+ (:), -- Not legal Haskell 98
+#endif
-- * Basic type classes
Eq((==), (/=)),
-- * Basic type classes
Eq((==), (/=)),
(&&), (||), not, otherwise,
subtract, even, odd, gcd, lcm, (^), (^^),
fromIntegral, realToFrac,
(&&), (||), not, otherwise,
subtract, even, odd, gcd, lcm, (^), (^^),
fromIntegral, realToFrac,
- --exported by Data.Tuple: fst, snd, curry, uncurry,
+ fst, snd, curry, uncurry,
id, const, (.), flip, ($), until,
asTypeOf, error, undefined,
seq, ($!)
) where
id, const, (.), flip, ($), until,
asTypeOf, error, undefined,
seq, ($!)
) where
import Control.Monad
import System.IO
import Text.Read
import Control.Monad
import System.IO
import Text.Read
import Data.Maybe
import Data.Bool
import Data.Tuple
import Data.Maybe
import Data.Bool
import Data.Tuple
#ifdef __GLASGOW_HASKELL__
import GHC.Base
#ifdef __GLASGOW_HASKELL__
import GHC.Base
import GHC.Err ( error, undefined )
#endif
import GHC.Err ( error, undefined )
#endif
+#ifdef __HUGS__
+import Hugs.Prelude
+#endif
+
+#ifndef __HUGS__
($!) :: (a -> b) -> a -> b
f $! x = x `seq` f x
($!) :: (a -> b) -> a -> b
f $! x = x `seq` f x