[commit: ghc] master: Kind-check CUSK associated types separately (030211d)

git at git.haskell.org git at git.haskell.org
Tue Jul 10 23:55:36 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/030211d21207dabb7a4bf21cc9af6fa5eb066db1/ghc

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

commit 030211d21207dabb7a4bf21cc9af6fa5eb066db1
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Thu Jul 5 15:09:50 2018 -0400

    Kind-check CUSK associated types separately
    
    Previously, we kind-checked associated types while while still
    figuring out the kind of a CUSK class. This caused trouble, as
    documented in Note [Don't process associated types in kcLHsQTyVars]
    in TcTyClsDecls. This commit moves this process after the initial
    kind of the class is determined.
    
    Fixes #15142.
    
    Test case: indexed-types/should_compile/T15142.hs


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

030211d21207dabb7a4bf21cc9af6fa5eb066db1
 compiler/typecheck/TcHsType.hs                     | 12 ++--
 compiler/typecheck/TcTyClsDecls.hs                 | 71 ++++++++++++++--------
 .../tests/indexed-types/should_compile/T15142.hs   | 14 +++++
 testsuite/tests/indexed-types/should_compile/all.T |  1 +
 4 files changed, 66 insertions(+), 32 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 030211d21207dabb7a4bf21cc9af6fa5eb066db1


More information about the ghc-commits mailing list