[commit: ghc] ghc-8.4: Refactor kcHsTyVarBndrs (dfe049f)

git at git.haskell.org git at git.haskell.org
Sun Jan 14 22:07:47 UTC 2018


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

On branch  : ghc-8.4
Link       : http://ghc.haskell.org/trac/ghc/changeset/dfe049fd04b900edba923af2dbca3ee81ff594ce/ghc

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

commit dfe049fd04b900edba923af2dbca3ee81ff594ce
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Thu Dec 7 14:31:53 2017 +0000

    Refactor kcHsTyVarBndrs
    
    This refactoring
    
    * Renames kcHsTyVarBndrs to kcLHsQTyVars,
      which is more truthful. It is only used in getInitialKind.
    
    * Pulls out bind_telescope from that function, and calls it
      kcLHsTyVarBndrs, again to reflect its argument
    
    * Uses the new kcLHsTyVarBndrs in kcConDecl, where the old
      function was wild overkill.
    
    There should not be any change in behaviour
    
    (cherry picked from commit de2044098ae96245aa741fe1b47a06a996a1c725)


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

dfe049fd04b900edba923af2dbca3ee81ff594ce
 compiler/typecheck/TcHsType.hs     | 146 ++++++++++++++++++++-----------------
 compiler/typecheck/TcTyClsDecls.hs |  14 ++--
 2 files changed, 86 insertions(+), 74 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 dfe049fd04b900edba923af2dbca3ee81ff594ce


More information about the ghc-commits mailing list