X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Futils%2FBag.lhs;h=481dedfd8e48497a2a82d08bcb64d0a34151b958;hb=ea551d6a25581168f790a08c43bb09bda8c314f6;hp=e53d23dc0cfd8083c4e2de73279592728e9e41aa;hpb=e4cdbb7b821b1ee6dfb0d7a5ef7275edab6a0520;p=ghc-hetmet.git diff --git a/compiler/utils/Bag.lhs b/compiler/utils/Bag.lhs index e53d23d..481dedf 100644 --- a/compiler/utils/Bag.lhs +++ b/compiler/utils/Bag.lhs @@ -22,6 +22,9 @@ import Outputable import Util ( isSingleton ) import Data.List ( partition ) + +infixr 3 `consBag` +infixl 3 `snocBag` \end{code} @@ -178,5 +181,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}