[commit: ghc] wip/no-telescope-tvs: Remove the incredibly hairy splitTelescopeTvs. (19b7ac2)

git at git.haskell.org git at git.haskell.org
Thu Apr 28 19:15:51 UTC 2016


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

On branch  : wip/no-telescope-tvs
Link       : http://ghc.haskell.org/trac/ghc/changeset/19b7ac29b5fce20c67474407144281a10940b44f/ghc

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

commit 19b7ac29b5fce20c67474407144281a10940b44f
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


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

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


More information about the ghc-commits mailing list