Skip to content

Commit

Permalink
Use pprInfixName in pprInfo (#6091)
Browse files Browse the repository at this point in the history
Surround a name in backticks when printing an infix declaration in GHCi.
  • Loading branch information
pcapriotti committed May 14, 2012
1 parent 6c3045b commit 6406cd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghc/InteractiveUI.hs
Expand Up @@ -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
Expand Down

0 comments on commit 6406cd2

Please sign in to comment.