X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcSMonad.lhs;h=63b3bb8c6d408a06addc54fa42c9c4e509df0e17;hb=831ea49474bf28f1d33428d09bc8912827be265e;hp=647f22f9a6e025e35ccb908c93562a82a5c6c219;hpb=fa7b383da0665fbb9c4a102507b16b02d1b3b77b;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs index 647f22f..63b3bb8 100644 --- a/compiler/typecheck/TcSMonad.lhs +++ b/compiler/typecheck/TcSMonad.lhs @@ -101,12 +101,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} @@ -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