summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-07-13 18:14:01 +0100
committerIan Lynagh <igloo@earth.li>2012-07-13 18:14:01 +0100
commit31afdf5ceb93b520ffeaa470562c0cbd8462bcb6 (patch)
treed72090538d28fcc45111e0180e88b912d7d368c2
parent43405edbe91d16b289948b9cf442e0bd1b33abdf (diff)
downloadhaskell-31afdf5ceb93b520ffeaa470562c0cbd8462bcb6.tar.gz
Fix build with GHC 7.0
-rw-r--r--compiler/cmm/CmmLayoutStack.hs3
-rw-r--r--compiler/cmm/CmmLint.hs3
-rw-r--r--compiler/cmm/CmmProcPoint.hs3
-rw-r--r--compiler/cmm/Hoopl.hs3
-rw-r--r--compiler/cmm/Hoopl/Dataflow.hs3
5 files changed, 15 insertions, 0 deletions
diff --git a/compiler/cmm/CmmLayoutStack.hs b/compiler/cmm/CmmLayoutStack.hs
index 47239caeb8..732fb2b849 100644
--- a/compiler/cmm/CmmLayoutStack.hs
+++ b/compiler/cmm/CmmLayoutStack.hs
@@ -1,4 +1,7 @@
{-# LANGUAGE RecordWildCards, GADTs #-}
+#if __GLASGOW_HASKELL__ < 701
+{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
+#endif
module CmmLayoutStack (
cmmLayoutStack, setInfoTableStackMap, cmmSink
) where
diff --git a/compiler/cmm/CmmLint.hs b/compiler/cmm/CmmLint.hs
index 2e24dd7f82..e4bc308c22 100644
--- a/compiler/cmm/CmmLint.hs
+++ b/compiler/cmm/CmmLint.hs
@@ -6,6 +6,9 @@
--
-----------------------------------------------------------------------------
{-# LANGUAGE GADTs #-}
+#if __GLASGOW_HASKELL__ < 701
+{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
+#endif
module CmmLint (
cmmLint, cmmLintGraph
) where
diff --git a/compiler/cmm/CmmProcPoint.hs b/compiler/cmm/CmmProcPoint.hs
index ebe40d9c9e..51b2845297 100644
--- a/compiler/cmm/CmmProcPoint.hs
+++ b/compiler/cmm/CmmProcPoint.hs
@@ -1,5 +1,8 @@
{-# LANGUAGE GADTs, DisambiguateRecordFields #-}
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
+#if __GLASGOW_HASKELL__ < 701
+{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
+#endif
module CmmProcPoint
( ProcPointSet, Status(..)
diff --git a/compiler/cmm/Hoopl.hs b/compiler/cmm/Hoopl.hs
index 08d95b5073..1d69be4611 100644
--- a/compiler/cmm/Hoopl.hs
+++ b/compiler/cmm/Hoopl.hs
@@ -1,3 +1,6 @@
+#if __GLASGOW_HASKELL__ < 701
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+#endif
module Hoopl (
module Compiler.Hoopl,
module Hoopl.Dataflow,
diff --git a/compiler/cmm/Hoopl/Dataflow.hs b/compiler/cmm/Hoopl/Dataflow.hs
index e35beb93e9..6b9a1357c5 100644
--- a/compiler/cmm/Hoopl/Dataflow.hs
+++ b/compiler/cmm/Hoopl/Dataflow.hs
@@ -16,6 +16,9 @@
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Trustworthy #-}
#endif
+#if __GLASGOW_HASKELL__ < 701
+{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
+#endif
module Hoopl.Dataflow
( DataflowLattice(..), OldFact(..), NewFact(..), Fact, mkFactBase