[commit: ghc] ghc-8.0: Remove the incredibly hairy splitTelescopeTvs. (ced7cc0)

git at git.haskell.org git at git.haskell.org
Wed Aug 24 00:22:22 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/ced7cc010785df5968d15b24703d8f01328a82ba/ghc

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

commit ced7cc010785df5968d15b24703d8f01328a82ba
Author: Richard Eisenberg <eir at cis.upenn.edu>
Date:   Tue Apr 26 10:50:33 2016 -0400

    Remove the incredibly hairy splitTelescopeTvs.
    
    This patch removes splitTelescopeTvs by adding information about
    scoped type variables to TcTyCon. Vast simplification!
    
    This also fixes #11821 by bringing only unzonked vars into scope.
    
    Test case: polykinds/T11821
    
    (cherry picked from commit c5919f75afab9dd6f0a4a2670402024cece5da57)


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

ced7cc010785df5968d15b24703d8f01328a82ba
 compiler/typecheck/TcHsType.hs            | 411 ++++++++----------------------
 compiler/typecheck/TcMType.hs             |  10 +-
 compiler/typecheck/TcTyClsDecls.hs        | 107 ++++----
 compiler/typecheck/TcValidity.hs          |   1 +
 compiler/types/TyCon.hs                   |  79 ++++--
 testsuite/tests/ghci/scripts/T7873.stderr |   9 +-
 testsuite/tests/polykinds/T11821.hs       |  31 +++
 testsuite/tests/polykinds/all.T           |   1 +
 8 files changed, 272 insertions(+), 377 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 ced7cc010785df5968d15b24703d8f01328a82ba


More information about the ghc-commits mailing list