Refactor kcHsTyVarBndrs
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 7 Dec 2017 14:31:53 +0000 (14:31 +0000)
committerBen Gamari <ben@smart-cactus.org>
Sun, 14 Jan 2018 19:35:11 +0000 (14:35 -0500)
commitdfe049fd04b900edba923af2dbca3ee81ff594ce
tree02ffe8862446a5f02796ccd3bb84ad0e6e096d29
parentd87bb656ad49ce591f71d6516b575e0c3e109a49
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)
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcTyClsDecls.hs