[commit: ghc] master: Treat banged bindings as FunBinds (6567c81)

git at git.haskell.org git at git.haskell.org
Tue Jun 27 17:35:01 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6567c815135e93f8550d526f81d13f31c0cd92b6/ghc

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

commit 6567c815135e93f8550d526f81d13f31c0cd92b6
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Jun 27 10:30:20 2017 -0400

    Treat banged bindings as FunBinds
    
    This is another attempt at resolving #13594 by treating strict variable
    binds as FunBinds instead of PatBinds (as suggested in comment:1).
    
    Test Plan: Validate
    
    Reviewers: austin, alanz
    
    Subscribers: rwbarton, thomie, mpickering
    
    GHC Trac Issues: #13594
    
    Differential Revision: https://phabricator.haskell.org/D3670


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

6567c815135e93f8550d526f81d13f31c0cd92b6
 compiler/deSugar/Check.hs                          |  6 ++--
 compiler/deSugar/DsBinds.hs                        | 29 ++++++++++------
 compiler/deSugar/DsUtils.hs                        | 14 +++++++-
 compiler/deSugar/Match.hs                          |  9 +++--
 compiler/hsSyn/HsBinds.hs                          | 40 ++++++++++++++++++++--
 compiler/hsSyn/HsExpr.hs                           | 28 ++++++++++-----
 compiler/hsSyn/HsUtils.hs                          | 15 ++++++--
 compiler/parser/Parser.y                           | 34 +++++++++++-------
 compiler/parser/RdrHsSyn.hs                        | 22 ++++++++----
 compiler/rename/RnBinds.hs                         |  4 +--
 compiler/typecheck/TcMatches.hs                    |  9 ++++-
 testsuite/tests/ghc-api/annotations/T10358.stdout  |  6 ++--
 .../parser/should_compile/DumpParsedAst.stderr     |  3 +-
 .../parser/should_compile/DumpRenamedAst.stderr    |  3 +-
 .../should_compile/DumpTypecheckedAst.stderr       |  3 +-
 testsuite/tests/perf/compiler/all.T                |  4 ++-
 testsuite/tests/typecheck/should_compile/all.T     |  2 +-
 testsuite/tests/typecheck/should_run/all.T         |  2 +-
 18 files changed, 172 insertions(+), 61 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 6567c815135e93f8550d526f81d13f31c0cd92b6


More information about the ghc-commits mailing list