X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSMonad.lhs;h=b2ce381707d34cd3b89aa21b751b196710b188e9;hp=dfaa3dc11a2bdf7c8dc3650f9c2062c9cb37874e;hb=ca53c38335cdc671f0b1e0949aa1514fc3fd72a5;hpb=4f8d714962667c219de4e684fe069136a0f78729 diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs index dfaa3dc..b2ce381 100644 --- a/compiler/typecheck/TcSMonad.lhs +++ b/compiler/typecheck/TcSMonad.lhs @@ -103,12 +103,13 @@ import FastString import HsBinds -- for TcEvBinds stuff import Id - import TcRnTypes +import Data.IORef + #ifdef DEBUG +import StaticFlags( opt_PprStyle_Debug ) import Control.Monad( when ) #endif -import Data.IORef \end{code} @@ -529,7 +530,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