projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix primMname in External Core printer
[ghc-hetmet.git]
/
compiler
/
coreSyn
/
CoreLint.lhs
diff --git
a/compiler/coreSyn/CoreLint.lhs
b/compiler/coreSyn/CoreLint.lhs
index
421f3b0
..
e903c6a
100644
(file)
--- a/
compiler/coreSyn/CoreLint.lhs
+++ b/
compiler/coreSyn/CoreLint.lhs
@@
-10,7
+10,7
@@
A ``lint'' pass to check for Core correctness
module CoreLint (
lintCoreBindings,
lintUnfolding,
module CoreLint (
lintCoreBindings,
lintUnfolding,
- showPass, endPass, endIteration
+ showPass, endPass, endPassIf, endIteration
) where
#include "HsVersions.h"
) where
#include "HsVersions.h"
@@
-57,6
+57,9
@@
and do Core Lint when necessary.
endPass :: DynFlags -> String -> DynFlag -> [CoreBind] -> IO [CoreBind]
endPass = dumpAndLint dumpIfSet_core
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
endIteration :: DynFlags -> String -> DynFlag -> [CoreBind] -> IO [CoreBind]
endIteration = dumpAndLint dumpIfSet_dyn