summaryrefslogtreecommitdiff
path: root/libraries/base/Prelude.hs
diff options
context:
space:
mode:
authormalcolm <unknown>2002-09-10 10:50:28 +0000
committermalcolm <unknown>2002-09-10 10:50:28 +0000
commitbd2c070c099db0caba1f0db58dd6293831881aff (patch)
treeac3858a5bd1f0ea2bb355abc6c46e3385e8fc869 /libraries/base/Prelude.hs
parentc7f1b293ac756f84de1f58c50abd2e967ee093a3 (diff)
downloadhaskell-bd2c070c099db0caba1f0db58dd6293831881aff.tar.gz
[project @ 2002-09-10 10:50:28 by malcolm]
Export the builtin syntax for []((:),[]), ()(()), and (->) in nhc98 as well as ghc.
Diffstat (limited to 'libraries/base/Prelude.hs')
-rw-r--r--libraries/base/Prelude.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/libraries/base/Prelude.hs b/libraries/base/Prelude.hs
index 9f044e5745..02aad8b697 100644
--- a/libraries/base/Prelude.hs
+++ b/libraries/base/Prelude.hs
@@ -24,15 +24,16 @@ module Prelude (
Ordering(LT, EQ, GT),
Char, String, Int, Integer, Float, Double, IO,
Rational,
-#ifdef __GLASGOW_HASKELL__
+#if defined(__GLASGOW_HASKELL__) || defined(__NHC__)
-- Restore export of (:) until we get to 5.05
- []((:), []), -- Not legal Haskell 98; available through built-in syntax
+ []((:), []), -- Not legal Haskell 98;
+ -- ... available through built-in syntax
+ ()(..), -- Not legal Haskell 98
+ (->), -- ... available through built-in syntax
#endif
module Data.Tuple,
-- Includes tuple types + fst, snd, curry, uncurry
- -- ()(..), -- Not legal Haskell 98
- -- (->), -- ... available through built-in syntax
-- * Basic type classes
Eq((==), (/=)),