summaryrefslogtreecommitdiff
path: root/compiler/cmm
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cmm')
-rw-r--r--compiler/cmm/CmmLayoutStack.hs2
-rw-r--r--compiler/cmm/CmmLint.hs5
-rw-r--r--compiler/cmm/PprC.hs4
3 files changed, 1 insertions, 10 deletions
diff --git a/compiler/cmm/CmmLayoutStack.hs b/compiler/cmm/CmmLayoutStack.hs
index 53cfd11b3c..e87b714d66 100644
--- a/compiler/cmm/CmmLayoutStack.hs
+++ b/compiler/cmm/CmmLayoutStack.hs
@@ -33,9 +33,7 @@ import Data.Bits
import Data.List (nub)
import Control.Monad (liftM)
-#if __GLASGOW_HASKELL__ >= 709
import Prelude hiding ((<*>))
-#endif
#include "HsVersions.h"
diff --git a/compiler/cmm/CmmLint.hs b/compiler/cmm/CmmLint.hs
index a2ccfbeecf..3f85053514 100644
--- a/compiler/cmm/CmmLint.hs
+++ b/compiler/cmm/CmmLint.hs
@@ -5,7 +5,7 @@
-- CmmLint: checking the correctness of Cmm statements and expressions
--
-----------------------------------------------------------------------------
-{-# LANGUAGE GADTs, CPP #-}
+{-# LANGUAGE GADTs #-}
module CmmLint (
cmmLint, cmmLintGraph
) where
@@ -22,9 +22,6 @@ import Outputable
import DynFlags
import Control.Monad (liftM, ap)
-#if __GLASGOW_HASKELL__ < 709
-import Control.Applicative (Applicative(..))
-#endif
-- Things to check:
-- - invariant on CmmBlock in CmmExpr (see comment there)
diff --git a/compiler/cmm/PprC.hs b/compiler/cmm/PprC.hs
index 719d753a57..af24b17a6f 100644
--- a/compiler/cmm/PprC.hs
+++ b/compiler/cmm/PprC.hs
@@ -55,10 +55,6 @@ import Data.Word
import System.IO
import qualified Data.Map as Map
import Control.Monad (liftM, ap)
-#if __GLASGOW_HASKELL__ < 709
-import Control.Applicative (Applicative(..))
-#endif
-
import qualified Data.Array.Unsafe as U ( castSTUArray )
import Data.Array.ST