Use braces rather than angle-brackets in debug-printing for Bags
authorsimonpj@microsoft.com <unknown>
Fri, 23 Oct 2009 16:16:31 +0000 (16:16 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 23 Oct 2009 16:16:31 +0000 (16:16 +0000)
compiler/utils/Bag.lhs

index e53d23d..b7e92a3 100644 (file)
@@ -178,5 +178,5 @@ bagToList b = foldrBag (:) [] b
 
 \begin{code}
 instance (Outputable a) => Outputable (Bag a) where
-    ppr bag = char '<' <> pprWithCommas ppr (bagToList bag) <> char '>'
+    ppr bag = braces (pprWithCommas ppr (bagToList bag))
 \end{code}