Another round of External Core fixes
[ghc-hetmet.git] / compiler / coreSyn / CoreLint.lhs
index 421f3b0..345fb73 100644 (file)
@@ -10,7 +10,7 @@ A ``lint'' pass to check for Core correctness
 module CoreLint (
        lintCoreBindings,
        lintUnfolding, 
-       showPass, endPass, endIteration
+       showPass, endPass, endPassIf, endIteration
     ) where
 
 #include "HsVersions.h"
@@ -39,6 +39,7 @@ import StaticFlags
 import ListSetOps
 import DynFlags
 import Outputable
+import FastString
 import Util
 import Data.Maybe
 \end{code}
@@ -57,6 +58,9 @@ and do Core Lint when necessary.
 endPass :: DynFlags -> String -> DynFlag -> [CoreBind] -> IO [CoreBind]
 endPass = dumpAndLint dumpIfSet_core
 
+endPassIf :: Bool -> DynFlags -> String -> DynFlag -> [CoreBind] -> IO [CoreBind]
+endPassIf cond = dumpAndLint (dumpIf_core cond)
+
 endIteration :: DynFlags -> String -> DynFlag -> [CoreBind] -> IO [CoreBind]
 endIteration = dumpAndLint dumpIfSet_dyn