[commit: ghc] master: Quantify unfixed kind variables in CUSKs (1279428)

git at git.haskell.org git at git.haskell.org
Sat Jun 16 01:33:12 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/12794287174146f982257cdeffd491e3e23838dc/ghc

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

commit 12794287174146f982257cdeffd491e3e23838dc
Author: Richard Eisenberg <rae at cs.brynmawr.edu>
Date:   Thu Jun 14 08:50:06 2018 -0400

    Quantify unfixed kind variables in CUSKs
    
    This is a small change in user-facing behavior. When we
    have a unification variable left over in a CUSK, we previously
    would issue an error. But, we can just quantify. This also
    teaches kcLHsQTyVars to use quantifyTyVars instead of its own,
    ad-hoc quantification scheme.
    
    Fixes #15273.
    
    test case: polykinds/T11648b


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

12794287174146f982257cdeffd491e3e23838dc
 compiler/typecheck/TcHsType.hs                     | 69 ++++++----------------
 docs/users_guide/glasgow_exts.rst                  | 10 +---
 .../{should_fail => should_compile}/T13777.hs      |  2 +
 testsuite/tests/indexed-types/should_compile/all.T |  1 +
 .../tests/indexed-types/should_fail/T13777.stderr  | 20 -------
 testsuite/tests/indexed-types/should_fail/all.T    |  1 -
 testsuite/tests/polykinds/T11648b.stderr           |  9 ---
 testsuite/tests/polykinds/T6039.stderr             | 10 ----
 testsuite/tests/polykinds/all.T                    |  4 +-
 .../tests/typecheck/should_fail/T14904a.stderr     |  9 ---
 10 files changed, 24 insertions(+), 111 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 12794287174146f982257cdeffd491e3e23838dc


More information about the ghc-commits mailing list