[commit: ghc] ghc-8.2: Treat banged bindings as FunBinds (c7ed911)

git at git.haskell.org git at git.haskell.org
Thu Jun 29 19:19:49 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/c7ed911f1b102f85ba89fe2ccce9ecf8231d1b8c/ghc

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

commit c7ed911f1b102f85ba89fe2ccce9ecf8231d1b8c
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon May 8 17:47:19 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
    
    (cherry picked from commit 372995364c52eef15066132d7d1ea8b6760034e6)
    (cherry picked from commit 3032ae81dd14c2eaefa9ecd8880dafa9bda104d9)
    (cherry picked from commit 6567c815135e93f8550d526f81d13f31c0cd92b6)


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

c7ed911f1b102f85ba89fe2ccce9ecf8231d1b8c
 compiler/deSugar/Check.hs                          |  6 ++--
 compiler/deSugar/DsBinds.hs                        | 33 ++++++++++-------
 compiler/deSugar/DsExpr.hs                         |  2 +-
 compiler/deSugar/DsUtils.hs                        | 14 +++++++-
 compiler/deSugar/Match.hs                          |  9 +++--
 compiler/hsSyn/Convert.hs                          |  6 ++--
 compiler/hsSyn/HsBinds.hs                          | 40 +++++++++++++++++++--
 compiler/hsSyn/HsExpr.hs                           | 42 ++++++++++++++--------
 compiler/hsSyn/HsUtils.hs                          | 19 ++++++++--
 compiler/parser/Parser.y                           | 34 +++++++++++-------
 compiler/parser/RdrHsSyn.hs                        | 22 ++++++++----
 compiler/rename/RnBinds.hs                         |  8 ++---
 compiler/typecheck/TcGenDeriv.hs                   | 10 +++---
 compiler/typecheck/TcGenFunctor.hs                 |  5 ++-
 compiler/typecheck/TcInstDcls.hs                   |  2 +-
 compiler/typecheck/TcMatches.hs                    | 10 ++++--
 compiler/typecheck/TcPatSyn.hs                     |  4 +--
 compiler/typecheck/TcRnDriver.hs                   |  2 +-
 compiler/typecheck/TcTyDecls.hs                    |  4 +--
 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/typecheck/should_compile/T13594.hs |  8 +++++
 testsuite/tests/typecheck/should_compile/all.T     |  1 +
 .../tests/typecheck/should_run/T13594a.script      |  2 ++
 testsuite/tests/typecheck/should_run/all.T         |  1 +
 27 files changed, 211 insertions(+), 88 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 c7ed911f1b102f85ba89fe2ccce9ecf8231d1b8c


More information about the ghc-commits mailing list