[commit: ghc] ghc-8.6: Kind-check CUSK associated types separately (d0dfc5c)

git at git.haskell.org git at git.haskell.org
Thu Jul 12 21:07:10 UTC 2018


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

On branch  : ghc-8.6
Link       : http://ghc.haskell.org/trac/ghc/changeset/d0dfc5cc4859a07778bc674eb865811616d4d6c6/ghc

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

commit d0dfc5cc4859a07778bc674eb865811616d4d6c6
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
    
    (cherry picked from commit 030211d21207dabb7a4bf21cc9af6fa5eb066db1)


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

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


More information about the ghc-commits mailing list