[commit: ghc] wip/rae: Perform a validity check on assoc type defaults. (2c13f56)

git at git.haskell.org git at git.haskell.org
Sun Sep 20 20:28:21 UTC 2015


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

On branch  : wip/rae
Link       : http://ghc.haskell.org/trac/ghc/changeset/2c13f56b6ca0bb6ea803623dabb22af873807582/ghc

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

commit 2c13f56b6ca0bb6ea803623dabb22af873807582
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Sat Sep 19 14:32:44 2015 -0400

    Perform a validity check on assoc type defaults.
    
    This fixes #10817 and #10899. A knock-on effect is that we must
    now remember locations of associated type defaults for error
    messages during validity checking. This isn't too bad, but it
    increases the size of the diff somewhat.
    
    Test cases: indexed-types/should_fail/T108{17,99}


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

2c13f56b6ca0bb6ea803623dabb22af873807582
 compiler/iface/MkIface.hs                          |  2 +-
 compiler/iface/TcIface.hs                          |  2 +-
 compiler/typecheck/TcInstDcls.hs                   |  7 +++++-
 compiler/typecheck/TcRnDriver.hs                   |  4 ++--
 compiler/typecheck/TcTyClsDecls.hs                 | 26 +++++++++++++---------
 compiler/typecheck/TcValidity.hs                   | 17 +++++++++++++-
 compiler/types/Class.hs                            |  6 ++++-
 .../tests/indexed-types/should_fail/T10817.hs      | 14 ++++++++++++
 .../tests/indexed-types/should_fail/T10817.stderr  |  6 +++++
 .../tests/indexed-types/should_fail/T10899.hs      |  7 ++++++
 .../tests/indexed-types/should_fail/T10899.stderr  |  4 ++++
 testsuite/tests/indexed-types/should_fail/all.T    |  2 ++
 testsuite/tests/typecheck/should_compile/tc253.hs  |  2 ++
 13 files changed, 82 insertions(+), 17 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 2c13f56b6ca0bb6ea803623dabb22af873807582


More information about the ghc-commits mailing list