projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c43c981
)
Use braces rather than angle-brackets in debug-printing for Bags
author
simonpj@microsoft.com
<unknown>
Fri, 23 Oct 2009 16:16:31 +0000
(16:16 +0000)
committer
simonpj@microsoft.com
<unknown>
Fri, 23 Oct 2009 16:16:31 +0000
(16:16 +0000)
compiler/utils/Bag.lhs
patch
|
blob
|
history
diff --git
a/compiler/utils/Bag.lhs
b/compiler/utils/Bag.lhs
index
e53d23d
..
b7e92a3
100644
(file)
--- a/
compiler/utils/Bag.lhs
+++ b/
compiler/utils/Bag.lhs
@@
-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}