[commit: ghc] ghc-7.8: Use prefix notation in pprIfaceDecl for IfaceIds (dfeca0d)

git at git.haskell.org git at git.haskell.org
Sat Mar 22 19:38:29 UTC 2014


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

On branch  : ghc-7.8
Link       : http://ghc.haskell.org/trac/ghc/changeset/dfeca0d688d172c876121414e3ae0af878a582a9/ghc

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

commit dfeca0d688d172c876121414e3ae0af878a582a9
Author: Dr. ERDI Gergo <gergo at erdi.hu>
Date:   Fri Mar 14 21:35:30 2014 +0800

    Use prefix notation in pprIfaceDecl for IfaceIds
    
    (cherry picked from commit 5908a7427abd35264f5bafd5bf7bce3a0c9dde8e)


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

dfeca0d688d172c876121414e3ae0af878a582a9
 compiler/iface/IfaceSyn.lhs |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/iface/IfaceSyn.lhs b/compiler/iface/IfaceSyn.lhs
index 7484b37..1283b09 100644
--- a/compiler/iface/IfaceSyn.lhs
+++ b/compiler/iface/IfaceSyn.lhs
@@ -1047,7 +1047,7 @@ instance Outputable IfaceDecl where
 pprIfaceDecl :: IfaceDecl -> SDoc
 pprIfaceDecl (IfaceId {ifName = var, ifType = ty,
                        ifIdDetails = details, ifIdInfo = info})
-  = sep [ ppr var <+> dcolon <+> ppr ty,
+  = sep [ pprPrefixOcc var <+> dcolon <+> ppr ty,
           nest 2 (ppr details),
           nest 2 (ppr info) ]
 



More information about the ghc-commits mailing list