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

On branch  : master

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

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

commit 6406cd293c002bc4e459ff1fb71addc8e6bdc151
Author: Paolo Capriotti <[email protected]>
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



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to