From 6406cd293c002bc4e459ff1fb71addc8e6bdc151 Mon Sep 17 00:00:00 2001 From: Paolo Capriotti Date: Mon, 14 May 2012 13:37:14 +0100 Subject: [PATCH] Use pprInfixName in pprInfo (#6091) Surround a name in backticks when printing an infix declaration in GHCi. --- ghc/InteractiveUI.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.9.1