#5657: section suggestion adds backticks to operators ---------------------------------+------------------------------------------ Reporter: tinctorius | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 7.4.1 Component: Compiler | Version: 7.2.1 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: Other Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------
Comment(by simonpj@…): commit c492e50bd681551e14f12d9fe7479d986b47e9dc {{{ Author: Simon Peyton Jones <simo...@microsoft.com> Date: Mon Dec 19 16:45:13 2011 +0000 Tidy up pretty-printing for variables We already have a class OutputableBndr; this patch adds methods pprInfixOcc and pprPrefixOcc, so that we can get rid of the hideous hack (the old) Outputable.pprHsVar. The hack was exposed by Trac #5657, which is thereby fixed. compiler/basicTypes/Name.lhs | 3 +++ compiler/basicTypes/RdrName.lhs | 3 +++ compiler/coreSyn/CoreSyn.lhs | 2 ++ compiler/coreSyn/PprCore.lhs | 3 +++ compiler/hsSyn/HsDecls.lhs | 4 ++-- compiler/hsSyn/HsExpr.lhs | 10 +++++----- compiler/hsSyn/HsImpExp.lhs | 8 ++++---- compiler/typecheck/TcHsSyn.lhs | 2 +- compiler/types/TypeRep.lhs | 4 +++- compiler/utils/Outputable.lhs | 28 ++++++---------------------- 10 files changed, 32 insertions(+), 35 deletions(-) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5657#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs