summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-12-31 13:47:43 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-12-31 22:35:50 +0100
commit2f923ce2ab8bad6d01645c735c81bbf1b9ff1e05 (patch)
tree8a21936336868ae1bdaf5b10eb8a1d58480a4727 /compiler/codeGen
parent0d20737860c29169d89c1d5ea728f3848cc28564 (diff)
downloadhaskell-2f923ce2ab8bad6d01645c735c81bbf1b9ff1e05.tar.gz
Drop pre-AMP compatibility CPP conditionals
Since GHC 8.1/8.2 only needs to be bootstrap-able by GHC 7.10 and GHC 8.0 (and GHC 8.2), we can now finally drop all that pre-AMP compatibility CPP-mess for good! Reviewers: austin, goldfire, bgamari Subscribers: goldfire, thomie, erikd Differential Revision: https://phabricator.haskell.org/D1724
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/StgCmmBind.hs2
-rw-r--r--compiler/codeGen/StgCmmExpr.hs2
-rw-r--r--compiler/codeGen/StgCmmExtCode.hs5
-rw-r--r--compiler/codeGen/StgCmmForeign.hs4
-rw-r--r--compiler/codeGen/StgCmmHeap.hs2
-rw-r--r--compiler/codeGen/StgCmmLayout.hs2
-rw-r--r--compiler/codeGen/StgCmmPrim.hs2
7 files changed, 0 insertions, 19 deletions
diff --git a/compiler/codeGen/StgCmmBind.hs b/compiler/codeGen/StgCmmBind.hs
index 9cedfcdd62..fde662b317 100644
--- a/compiler/codeGen/StgCmmBind.hs
+++ b/compiler/codeGen/StgCmmBind.hs
@@ -52,9 +52,7 @@ import DynFlags
import Control.Monad
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
------------------------------------------------------------------------
-- Top-level bindings
diff --git a/compiler/codeGen/StgCmmExpr.hs b/compiler/codeGen/StgCmmExpr.hs
index de23443f40..c4ff11a1d0 100644
--- a/compiler/codeGen/StgCmmExpr.hs
+++ b/compiler/codeGen/StgCmmExpr.hs
@@ -50,9 +50,7 @@ import Outputable
import Control.Monad (unless,void)
import Control.Arrow (first)
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
------------------------------------------------------------------------
-- cgExpr: the main function
diff --git a/compiler/codeGen/StgCmmExtCode.hs b/compiler/codeGen/StgCmmExtCode.hs
index 50015989e0..db03a3883b 100644
--- a/compiler/codeGen/StgCmmExtCode.hs
+++ b/compiler/codeGen/StgCmmExtCode.hs
@@ -1,5 +1,3 @@
-{-# LANGUAGE CPP #-}
-
-- | Our extended FCode monad.
-- We add a mapping from names to CmmExpr, to support local variable names in
@@ -54,9 +52,6 @@ import UniqFM
import Unique
import Control.Monad (liftM, ap)
-#if __GLASGOW_HASKELL__ < 709
-import Control.Applicative (Applicative(..))
-#endif
-- | The environment contains variable definitions or blockids.
data Named
diff --git a/compiler/codeGen/StgCmmForeign.hs b/compiler/codeGen/StgCmmForeign.hs
index 285e92c2ed..1dc430d06c 100644
--- a/compiler/codeGen/StgCmmForeign.hs
+++ b/compiler/codeGen/StgCmmForeign.hs
@@ -45,11 +45,7 @@ import BasicTypes
import Control.Monad
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding( succ, (<*>) )
-#else
-import Prelude hiding( succ )
-#endif
-----------------------------------------------------------------------------
-- Code generation for Foreign Calls
diff --git a/compiler/codeGen/StgCmmHeap.hs b/compiler/codeGen/StgCmmHeap.hs
index bcc5221275..ebff4402d0 100644
--- a/compiler/codeGen/StgCmmHeap.hs
+++ b/compiler/codeGen/StgCmmHeap.hs
@@ -48,9 +48,7 @@ import DynFlags
import FastString( mkFastString, fsLit )
import Panic( sorry )
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
import Control.Monad (when)
import Data.Maybe (isJust)
diff --git a/compiler/codeGen/StgCmmLayout.hs b/compiler/codeGen/StgCmmLayout.hs
index b46ab5ae14..47ee370212 100644
--- a/compiler/codeGen/StgCmmLayout.hs
+++ b/compiler/codeGen/StgCmmLayout.hs
@@ -25,9 +25,7 @@ module StgCmmLayout (
#include "HsVersions.h"
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
import StgCmmClosure
import StgCmmEnv
diff --git a/compiler/codeGen/StgCmmPrim.hs b/compiler/codeGen/StgCmmPrim.hs
index 5d3b94f090..84f263cc3c 100644
--- a/compiler/codeGen/StgCmmPrim.hs
+++ b/compiler/codeGen/StgCmmPrim.hs
@@ -43,9 +43,7 @@ import FastString
import Outputable
import Util
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
import Data.Bits ((.&.), bit)
import Control.Monad (liftM, when)