[project @ 2001-11-09 18:40:52 by sof]
authorsof <unknown>
Fri, 9 Nov 2001 18:40:52 +0000 (18:40 +0000)
committersof <unknown>
Fri, 9 Nov 2001 18:40:52 +0000 (18:40 +0000)
lookupInstEnv: "#ifdef DEBUG"-protect trace code
that got included in prev. commit.

(I'm guessing it either should be removed or moved
into the ASSERT, but I'll let the original committer
decide which).

ghc/compiler/types/InstEnv.lhs

index 6a1c2bb..e44d6f6 100644 (file)
@@ -286,9 +286,11 @@ lookupInstEnv env key_cls key_tys
              Nothing        -> find rest
              Just _         -> NoMatch (any_match rest)
          Just (subst, leftovers) -> ASSERT( null leftovers )
+#ifdef DEBUG
                                     pprTrace "lookupInst" (vcat [text "look:" <+> ppr key_cls <+> ppr key_tys, 
                                                                  text "found:" <+> ppr dfun_id,
                                                                  text "env:" <+> ppr (classInstEnv env key_cls)]) $
+#endif
                                     FoundInst subst dfun_id
 
     any_match rest = or [ maybeToBool (matchTys tvs tpl key_tys)