summaryrefslogtreecommitdiff
path: root/libraries/base/Text/ParserCombinators
diff options
context:
space:
mode:
authorsimonpj@microsoft.com <unknown>2011-01-28 12:07:19 +0000
committersimonpj@microsoft.com <unknown>2011-01-28 12:07:19 +0000
commit32ba2853209b8914fd36947ccf57d34c009a9e47 (patch)
tree684ac65733ddbdffc48bd4f57e889e9d7f95a610 /libraries/base/Text/ParserCombinators
parent4cc27e70f04c114b4e24e16cdb8c3e9ccf926ca2 (diff)
downloadhaskell-32ba2853209b8914fd36947ccf57d34c009a9e47.tar.gz
Use explicit language extensions & remove extension fields from base.cabal
Add explicit {-# LANGUAGE xxx #-} pragmas to each module, that say what extensions that module uses. This makes it clearer where different extensions are used in the (large, variagated) base package. Now base.cabal doesn't need any extensions field Thanks to Bas van Dijk for doing all the work.
Diffstat (limited to 'libraries/base/Text/ParserCombinators')
-rw-r--r--libraries/base/Text/ParserCombinators/ReadP.hs9
-rw-r--r--libraries/base/Text/ParserCombinators/ReadPrec.hs3
2 files changed, 10 insertions, 2 deletions
diff --git a/libraries/base/Text/ParserCombinators/ReadP.hs b/libraries/base/Text/ParserCombinators/ReadP.hs
index 5dabfd1cd7..27bba5404e 100644
--- a/libraries/base/Text/ParserCombinators/ReadP.hs
+++ b/libraries/base/Text/ParserCombinators/ReadP.hs
@@ -1,4 +1,11 @@
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+#ifndef __NHC__
+{-# LANGUAGE Rank2Types #-}
+#endif
+#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE MagicHash #-}
+#endif
+
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.ReadP
diff --git a/libraries/base/Text/ParserCombinators/ReadPrec.hs b/libraries/base/Text/ParserCombinators/ReadPrec.hs
index 361f11af86..f282d1af45 100644
--- a/libraries/base/Text/ParserCombinators/ReadPrec.hs
+++ b/libraries/base/Text/ParserCombinators/ReadPrec.hs
@@ -1,4 +1,5 @@
-{-# OPTIONS_GHC -XNoImplicitPrelude #-}
+{-# LANGUAGE CPP, NoImplicitPrelude #-}
+
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.ReadPrec