Make warning printing a bit less noisy
authorsimonpj@microsoft.com <unknown>
Fri, 18 Dec 2009 16:35:49 +0000 (16:35 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 18 Dec 2009 16:35:49 +0000 (16:35 +0000)
Use -dppr-debug to make it noisy again

compiler/coreSyn/CoreSubst.lhs
compiler/utils/Outputable.lhs

index 8ca99fa..216b636 100644 (file)
@@ -534,7 +534,8 @@ substUnfoldingSource (Subst in_scope ids _) (InlineWrapper wkr)
   = case wkr_expr of
       Var w1 -> InlineWrapper w1
       _other -> WARN( True, text "Interesting! CoreSubst.substWorker1:" <+> ppr wkr 
-                            <+> equals <+> ppr wkr_expr )   -- Note [Worker inlining]
+                            <+> ifPprDebug (equals <+> ppr wkr_expr) )   
+                             -- Note [Worker inlining]
                 InlineRule    -- It's not a wrapper any more, but still inline it!
 
   | Just w1  <- lookupInScope in_scope wkr = InlineWrapper w1
index fd50fb5..84e8b9d 100644 (file)
@@ -790,7 +790,7 @@ warnPprTrace :: Bool -> String -> Int -> SDoc -> a -> a
 warnPprTrace _     _file _line _msg x | opt_NoDebugOutput = x
 warnPprTrace False _file _line _msg x = x
 warnPprTrace True   file  line  msg x
-  = trace (show (doc PprDebug)) x
+  = trace (show (doc defaultDumpStyle)) x
   where
     doc = sep [hsep [text "WARNING: file", text file, text "line", int line],
               msg]