[commit: ghc] master: Better treatment of signatures in cls/inst (72d23c3)

git at git.haskell.org git at git.haskell.org
Thu Jul 30 14:34:47 UTC 2015


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/72d23c3e0244b1163d7806e40128ad51cc959f7f/ghc

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

commit 72d23c3e0244b1163d7806e40128ad51cc959f7f
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Jul 30 15:06:55 2015 +0100

    Better treatment of signatures in cls/inst
    
    The provoking cause for this patch is Trac #5001, comment:23.  There
    was an INLINE pragma in an instance decl, that shouldn't be there.
    But there was no complaint, just a  mysterious WARN later.
    
    I ended up having to do some real refactoring but the result is,
    I think, simpler and more robust.


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

72d23c3e0244b1163d7806e40128ad51cc959f7f
 compiler/rename/RnBinds.hs                         | 132 ++++++++++++---------
 compiler/rename/RnEnv.hs                           |   5 +-
 compiler/rename/RnSource.hs                        |  79 ++++--------
 compiler/typecheck/TcBinds.hs                      |   7 +-
 compiler/typecheck/TcDeriv.hs                      |   2 +-
 testsuite/tests/module/mod48.stderr                |   6 +-
 .../should_fail/WildcardInInstanceSig.hs           |   4 +-
 .../should_fail/WildcardInInstanceSig.stderr       |   2 +-
 testsuite/tests/patsyn/should_fail/T9705-1.stderr  |   4 +-
 testsuite/tests/patsyn/should_fail/T9705-2.stderr  |   4 +-
 testsuite/tests/rename/should_fail/T5001.hs        |  10 ++
 testsuite/tests/rename/should_fail/T5001.stderr    |   4 +
 testsuite/tests/rename/should_fail/all.T           |   1 +
 .../tests/typecheck/should_fail/tcfail021.stderr   |   4 +-
 14 files changed, 137 insertions(+), 127 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 72d23c3e0244b1163d7806e40128ad51cc959f7f


More information about the ghc-commits mailing list