Repository : ssh://darcs.haskell.org//srv/darcs/ghc On branch : master
http://hackage.haskell.org/trac/ghc/changeset/c492e50bd681551e14f12d9fe7479d986b47e9dc >--------------------------------------------------------------- commit c492e50bd681551e14f12d9fe7479d986b47e9dc Author: Simon Peyton Jones <[email protected]> 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(-) Diff suppressed because of size. To see it, use: git show c492e50bd681551e14f12d9fe7479d986b47e9dc _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
