[commit: ghc] master: Use pprInfixName in pprInfo (#6091) (6406cd2)

Paolo Capriotti p.capriotti at gmail.com
Mon May 14 15:51:19 CEST 2012


Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/6406cd293c002bc4e459ff1fb71addc8e6bdc151

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

commit 6406cd293c002bc4e459ff1fb71addc8e6bdc151
Author: Paolo Capriotti <p.capriotti at gmail.com>
Date:   Mon May 14 13:37:14 2012 +0100

    Use pprInfixName in pprInfo (#6091)
    
    Surround a name in backticks when printing an infix declaration in GHCi.

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

 ghc/InteractiveUI.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
index 1a80b49..efafd25 100644
--- a/ghc/InteractiveUI.hs
+++ b/ghc/InteractiveUI.hs
@@ -993,7 +993,7 @@ pprInfo pefas (thing, fixity, insts)
   where
     show_fixity fix
         | fix == GHC.defaultFixity = empty
-        | otherwise                = ppr fix <+> ppr (GHC.getName thing)
+        | otherwise                = ppr fix <+> pprInfixName (GHC.getName thing)
 
 -----------------------------------------------------------------------------
 -- :main





More information about the Cvs-ghc mailing list