Fix build with 6.10
authorIan Lynagh <igloo@earth.li>
Mon, 13 Sep 2010 16:00:48 +0000 (16:00 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 13 Sep 2010 16:00:48 +0000 (16:00 +0000)
compiler/cmm/CmmBuildInfoTables.hs
compiler/cmm/CmmCPSZ.hs
compiler/cmm/CmmSpillReload.hs
compiler/cmm/CmmStackLayout.hs
compiler/cmm/ZipCfgCmmRep.hs
compiler/typecheck/FamInst.lhs
compiler/typecheck/TcSMonad.lhs
compiler/vectorise/Vectorise/Type/Env.hs

index c4a16d3..0ba8cc0 100644 (file)
@@ -1,4 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 611
 {-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Norman likes local bindings
 -- If this module lives on I'd like to get rid of this flag in due course
 
index e72d3f2..fa568af 100644 (file)
@@ -1,4 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 611
 {-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Norman likes local bindings
 -- If this module lives on I'd like to get rid of this flag in due course
 
index c457383..a8839a8 100644 (file)
@@ -1,4 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 611
 {-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Norman likes local bindings
 -- If this module lives on I'd like to get rid of this flag in due course
 
index a62580b..dedb6b0 100644 (file)
@@ -1,4 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 611
 {-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Norman likes local bindings
 -- If this module lives on I'd like to get rid of this flag in due course
 
index 1377e2f..b2328be 100644 (file)
@@ -1,4 +1,6 @@
+#if __GLASGOW_HASKELL__ >= 611
 {-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Norman likes local bindings
 
 -- This module is pure representation and should be imported only by
index e2da795..36f78cb 100644 (file)
@@ -8,7 +8,6 @@ module FamInst (
 import HscTypes
 import FamInstEnv
 import TcMType
-import TcType
 import TcRnMonad
 import TyCon
 import Name
index 73a7229..2524afc 100644 (file)
@@ -64,7 +64,6 @@ module TcSMonad (
 import HscTypes
 import BasicTypes 
 import Type
-import TcRnTypes
 
 import Inst
 import InstEnv 
@@ -96,6 +95,8 @@ import HsBinds               -- for TcEvBinds stuff
 import Id 
 import FunDeps
 
+import TcRnTypes
+
 import Control.Monad
 import Data.IORef
 \end{code}
index 18de832..8e26ed9 100644 (file)
@@ -1,4 +1,7 @@
-{-# OPTIONS_GHC -XNoMonoLocalBinds -fno-warn-missing-signatures #-}
+{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
+#if __GLASGOW_HASKELL__ >= 611
+{-# OPTIONS_GHC -XNoMonoLocalBinds #-}
+#endif
 -- Roman likes local bindings
 -- If this module lives on I'd like to get rid of this flag in due course