summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-03-29 14:16:29 +0000
committerIan Lynagh <igloo@earth.li>2008-03-29 14:16:29 +0000
commit11c7f334d1b98effdd62cd1fb93ca984338b3de3 (patch)
treed8606db961a88987096b021e8750e86750b59872
parent0c6b69eada9cb7a6302f98f4de70cc71d3544c44 (diff)
downloadhaskell-11c7f334d1b98effdd62cd1fb93ca984338b3de3.tar.gz
Remove an #ifdef DEBUG
-rw-r--r--compiler/iface/TcIface.lhs13
1 files changed, 6 insertions, 7 deletions
diff --git a/compiler/iface/TcIface.lhs b/compiler/iface/TcIface.lhs
index f352faf50a..adde9fb080 100644
--- a/compiler/iface/TcIface.lhs
+++ b/compiler/iface/TcIface.lhs
@@ -57,6 +57,7 @@ import ErrUtils
import Maybes
import SrcLoc
import DynFlags
+import Util
import Control.Monad
import Data.List
@@ -1037,13 +1038,11 @@ tcIfaceTyCon (IfaceTupTc bx ar) = tcWiredInTyCon (tupleTyCon bx ar)
tcIfaceTyCon (IfaceTc name) = do { thing <- tcIfaceGlobal name
; return (check_tc (tyThingTyCon thing)) }
where
-#ifdef DEBUG
- check_tc tc = case toIfaceTyCon tc of
- IfaceTc _ -> tc
- other -> pprTrace "check_tc" (ppr tc) tc
-#else
- check_tc tc = tc
-#endif
+ check_tc tc
+ | debugIsOn = case toIfaceTyCon tc of
+ IfaceTc _ -> tc
+ other -> pprTrace "check_tc" (ppr tc) tc
+ | otherwise = tc
-- we should be okay just returning Kind constructors without extra loading
tcIfaceTyCon IfaceLiftedTypeKindTc = return liftedTypeKindTyCon
tcIfaceTyCon IfaceOpenTypeKindTc = return openTypeKindTyCon