[commit: ghc] master: Fix pretty printing of IEThingWith (018487e)

git at git.haskell.org git at git.haskell.org
Fri May 6 16:18:27 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/018487e686793e22efd595491be5b5305ed2b9c0/ghc

>---------------------------------------------------------------

commit 018487e686793e22efd595491be5b5305ed2b9c0
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Fri May 6 17:15:54 2016 +0100

    Fix pretty printing of IEThingWith
    
    [skip ci]


>---------------------------------------------------------------

018487e686793e22efd595491be5b5305ed2b9c0
 compiler/hsSyn/HsImpExp.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler/hsSyn/HsImpExp.hs b/compiler/hsSyn/HsImpExp.hs
index 493a92b..4c72b35 100644
--- a/compiler/hsSyn/HsImpExp.hs
+++ b/compiler/hsSyn/HsImpExp.hs
@@ -228,8 +228,8 @@ instance (HasOccName name, OutputableBndr name) => Outputable (IE name) where
     ppr (IEThingAll      thing) = hcat [pprImpExp (unLoc thing), text "(..)"]
     ppr (IEThingWith thing wc withs flds)
         = pprImpExp (unLoc thing) <> parens (fsep (punctuate comma
-                                              ppWiths ++
-                                              map (ppr . flLabel . unLoc) flds))
+                                              (ppWiths ++
+                                              map (ppr . flLabel . unLoc) flds)))
       where
         ppWiths =
           case wc of



More information about the ghc-commits mailing list