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

git at git.haskell.org git at git.haskell.org
Tue Apr 26 19:59:27 UTC 2016


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

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

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

commit 4713a2b04571cec8518986adc354360e77bdb257
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


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

4713a2b04571cec8518986adc354360e77bdb257
 compiler/typecheck/TcHsType.hs            | 411 ++++++++----------------------
 compiler/typecheck/TcMType.hs             |  10 +-
 compiler/typecheck/TcTyClsDecls.hs        | 106 ++++----
 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, 263 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 4713a2b04571cec8518986adc354360e77bdb257


More information about the ghc-commits mailing list