projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX #4825: Update User Guide info on DLLs.
[ghc-hetmet.git]
/
compiler
/
typecheck
/
TcSMonad.lhs
diff --git
a/compiler/typecheck/TcSMonad.lhs
b/compiler/typecheck/TcSMonad.lhs
index
b8919a7
..
b2ce381
100644
(file)
--- a/
compiler/typecheck/TcSMonad.lhs
+++ b/
compiler/typecheck/TcSMonad.lhs
@@
-103,12
+103,13
@@
import FastString
import HsBinds -- for TcEvBinds stuff
import Id
import HsBinds -- for TcEvBinds stuff
import Id
-
import TcRnTypes
import TcRnTypes
+import Data.IORef
+
#ifdef DEBUG
#ifdef DEBUG
+import StaticFlags( opt_PprStyle_Debug )
import Control.Monad( when )
#endif
import Control.Monad( when )
#endif
-import Data.IORef
\end{code}
\end{code}
@@
-529,8
+530,9
@@
runTcS context untouch tcs
#ifdef DEBUG
; count <- TcM.readTcRef step_count
#ifdef DEBUG
; count <- TcM.readTcRef step_count
- ; when (count > 0) $
- TcM.dumpTcRn (ptext (sLit "Constraint solver steps =") <+> int count <+> ppr context)
+ ; when (opt_PprStyle_Debug && count > 0) $
+ TcM.debugDumpTcRn (ptext (sLit "Constraint solver steps =")
+ <+> int count <+> ppr context)
#endif
-- And return
; ev_binds <- TcM.readTcRef evb_ref
#endif
-- And return
; ev_binds <- TcM.readTcRef evb_ref