[commit: ghc] master: Refactor kcHsTyVarBndrs (de20440)

git at git.haskell.org git at git.haskell.org
Fri Dec 8 17:21:05 UTC 2017


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

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

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

commit de2044098ae96245aa741fe1b47a06a996a1c725
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


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

de2044098ae96245aa741fe1b47a06a996a1c725
 compiler/typecheck/TcHsType.hs     | 146 ++++++++++++++++++++-----------------
 compiler/typecheck/TcTyClsDecls.hs |   8 +-
 2 files changed, 83 insertions(+), 71 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 de2044098ae96245aa741fe1b47a06a996a1c725


More information about the ghc-commits mailing list