[commit: ghc] master: Show record construction/update without parens (5692643)
git at git.haskell.org
git at git.haskell.org
Mon Mar 2 17:15:59 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/5692643c9d17e746327588cd6157a923642b7975/ghc
>---------------------------------------------------------------
commit 5692643c9d17e746327588cd6157a923642b7975
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Mon Mar 2 11:07:58 2015 -0600
Show record construction/update without parens
Summary:
The 2010 report mentions:
"The result of `show` is a syntactically correct Haskell expression ...
Parenthesis are only added where needed, //ignoring associativity//".
Reviewers: austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D669
GHC Trac Issues: #2530
>---------------------------------------------------------------
5692643c9d17e746327588cd6157a923642b7975
compiler/hsSyn/HsExpr.hs | 4 +++-
compiler/typecheck/TcGenDeriv.hs | 2 ++
testsuite/tests/codeGen/should_run/T7953.stdout | 4 ++--
testsuite/tests/deriving/should_run/drvrun020.stdout | 2 +-
testsuite/tests/ghc-api/annotations-literals/literals.stdout | 6 +++---
5 files changed, 11 insertions(+), 7 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 5692643c9d17e746327588cd6157a923642b7975
More information about the ghc-commits
mailing list