[commit: ghc] ghc-8.0: Show: Restore redundant parentheses around records (0616691)

git at git.haskell.org git at git.haskell.org
Thu Mar 24 22:00:40 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/061669156c0e24a550dc968e5d6c7f1e5e518505/ghc

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

commit 061669156c0e24a550dc968e5d6c7f1e5e518505
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Thu Mar 24 10:54:11 2016 +0100

    Show: Restore redundant parentheses around records
    
    As discussed in #2530 we are going to continue to produce parentheses
    here in order to preserve compatibility with previous GHC releases. It
    was found that dropped parentheses would break some testsuites which
    compared against output from Show. This has been documented in the users
    guide.
    
    This reverts commit 5692643c9d17e746327588cd6157a923642b7975.
    
    Test Plan: Validate
    
    Reviewers: hvr, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2027
    
    GHC Trac Issues: #2350
    
    (cherry picked from commit 1448f8ab2379452312f1f74f6d5ba4de8ad3d47e)


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

061669156c0e24a550dc968e5d6c7f1e5e518505
 compiler/hsSyn/HsExpr.hs                                  |  6 ++----
 compiler/typecheck/TcGenDeriv.hs                          |  2 --
 docs/users_guide/bugs.rst                                 | 15 +++++++++++++++
 testsuite/tests/codeGen/should_run/T7953.stdout           |  4 ++--
 testsuite/tests/deriving/should_run/drvrun020.stdout      |  2 +-
 .../tests/ghc-api/annotations-literals/literals.stdout    |  6 +++---
 6 files changed, 23 insertions(+), 12 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 061669156c0e24a550dc968e5d6c7f1e5e518505


More information about the ghc-commits mailing list