summaryrefslogtreecommitdiff
path: root/compiler/prelude
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-06-05 00:52:01 +0100
committerIan Lynagh <igloo@earth.li>2012-06-05 03:11:23 +0100
commit243439e6e77eca548a6583722792d6b96e3f6bcd (patch)
tree82a7852a205a53f3acfcd5d345a43cb7e284108f /compiler/prelude
parent50fddb2b046605315f903d9b744780497cc978de (diff)
downloadhaskell-243439e6e77eca548a6583722792d6b96e3f6bcd.tar.gz
Change how macros like ASSERT are defined
By using Haskell's debugIsOn rather than CPP's "#ifdef DEBUG", we don't need to kludge things to keep the warning checker happy etc.
Diffstat (limited to 'compiler/prelude')
-rw-r--r--compiler/prelude/PrelRules.lhs1
-rw-r--r--compiler/prelude/TysWiredIn.lhs1
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/prelude/PrelRules.lhs b/compiler/prelude/PrelRules.lhs
index fc0c20ad48..7e798be426 100644
--- a/compiler/prelude/PrelRules.lhs
+++ b/compiler/prelude/PrelRules.lhs
@@ -41,6 +41,7 @@ import FastString
import StaticFlags ( opt_SimplExcessPrecision )
import Constants
import BasicTypes
+import Util
import Data.Bits as Bits
import Data.Int ( Int64 )
diff --git a/compiler/prelude/TysWiredIn.lhs b/compiler/prelude/TysWiredIn.lhs
index 7a06bae163..f36e717950 100644
--- a/compiler/prelude/TysWiredIn.lhs
+++ b/compiler/prelude/TysWiredIn.lhs
@@ -104,6 +104,7 @@ import Data.Array
import FastString
import Outputable
import Config
+import Util
alpha_tyvar :: [TyVar]
alpha_tyvar = [alphaTyVar]