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

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


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

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

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

commit ef2f8866541152850981d44bf037ea165f87c14f
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}


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

ef2f8866541152850981d44bf037ea165f87c14f
 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 ef2f8866541152850981d44bf037ea165f87c14f


More information about the ghc-commits mailing list