X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnMonad.lhs;h=dcba8084753937d94e613aab65f714337f9e6762;hp=3c6c59ee79186525670371d340991b43335838c4;hb=72d043c04c1b0db0896e2c876a1544434f0428ec;hpb=49f976f35373adb95e8b7043ba1666d48e7f33f7 diff --git a/compiler/typecheck/TcRnMonad.lhs b/compiler/typecheck/TcRnMonad.lhs index 3c6c59e..dcba808 100644 --- a/compiler/typecheck/TcRnMonad.lhs +++ b/compiler/typecheck/TcRnMonad.lhs @@ -49,6 +49,7 @@ import DynFlags import StaticFlags import FastString import Panic +import Util import System.IO import Data.IORef @@ -815,11 +816,9 @@ debugTc is useful for monadic debugging code \begin{code} debugTc :: TcM () -> TcM () -#ifdef DEBUG -debugTc thing = thing -#else -debugTc thing = return () -#endif +debugTc thing + | debugIsOn = thing + | otherwise = return () \end{code} %************************************************************************