[commit: ghc] ghc-8.0: Improve pretty-printing of HsWrappers (9ea96d5)

git at git.haskell.org git at git.haskell.org
Thu Feb 18 12:03:22 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/9ea96d5ff04e018c33def628e394ec55c0416662/ghc

>---------------------------------------------------------------

commit 9ea96d5ff04e018c33def628e394ec55c0416662
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Feb 12 13:42:55 2016 +0000

    Improve pretty-printing of HsWrappers
    
    Reduces un-neede parens.
    
    Also -fprint-typechecker-elaboration now makes type applications
    and casts in expressions also appear.  (Previously those were
    confusingly controlled by -fprint-explicit-coercions.)
    
    (cherry picked from commit d0846243747213218cba856d5c322016bd3e6d9e)


>---------------------------------------------------------------

9ea96d5ff04e018c33def628e394ec55c0416662
 compiler/hsSyn/HsExpr.hs                          | 40 +++++++++++++----------
 compiler/hsSyn/HsPat.hs                           | 22 ++++++++-----
 compiler/typecheck/TcEvidence.hs                  | 40 ++++++++++++-----------
 compiler/typecheck/TcExpr.hs                      |  6 ++--
 compiler/typecheck/TcSplice.hs                    |  2 +-
 testsuite/tests/roles/should_compile/T8958.stderr | 10 +++---
 6 files changed, 64 insertions(+), 56 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 9ea96d5ff04e018c33def628e394ec55c0416662


More information about the ghc-commits mailing list