Tidy up pretty-printing for variables
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 19 Dec 2011 16:45:13 +0000 (16:45 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 19 Dec 2011 16:45:13 +0000 (16:45 +0000)
commitc492e50bd681551e14f12d9fe7479d986b47e9dc
tree9cdea8c6898b37f1f8cfd75fa49c919475bf71a1
parente8c93ad1207fb3df1e009d86ad3ae837a0049d2e
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
compiler/basicTypes/RdrName.lhs
compiler/coreSyn/CoreSyn.lhs
compiler/coreSyn/PprCore.lhs
compiler/hsSyn/HsDecls.lhs
compiler/hsSyn/HsExpr.lhs
compiler/hsSyn/HsImpExp.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/types/TypeRep.lhs
compiler/utils/Outputable.lhs