projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
880046b
)
Print contraint step counts only with -dppr-debug
author
Simon Peyton Jones
<simonpj@microsoft.com>
Wed, 4 May 2011 14:46:09 +0000
(15:46 +0100)
committer
Simon Peyton Jones
<simonpj@microsoft.com>
Wed, 4 May 2011 14:46:09 +0000
(15:46 +0100)
compiler/typecheck/TcSMonad.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcSMonad.lhs
b/compiler/typecheck/TcSMonad.lhs
index
647f22f
..
414c63a
100644
(file)
--- a/
compiler/typecheck/TcSMonad.lhs
+++ b/
compiler/typecheck/TcSMonad.lhs
@@
-102,6
+102,7
@@
import FastString
import HsBinds -- for TcEvBinds stuff
import Id
+import StaticFlags( opt_PprStyle_Debug )
import TcRnTypes
#ifdef DEBUG
import Control.Monad( when )
@@
-527,7
+528,7
@@
runTcS context untouch tcs
#ifdef DEBUG
; count <- TcM.readTcRef step_count
- ; when (count > 0) $
+ ; when (opt_PprStyle_Debug && count > 0) $
TcM.debugDumpTcRn (ptext (sLit "Constraint solver steps =")
<+> int count <+> ppr context)
#endif