Use TyVars in PatSyns
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 11:39:38 +0000 (11:39 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 17:46:50 +0000 (17:46 +0000)
commit12eff239236c43ee903d8e29287a36c3d8e24747
tree77638971482dad42693471804f48c687b44cb8dc
parentedbe83190582f5dad2603c0929d6b3aa41ce314e
Use TyVars in PatSyns

I found that some TcTyVars were lurking in a PatSyn, because
tc_patsyn_finish was using the TcType -> TcType zonker rather
than the TcType -> Type zonker.  Eeek.

I fixing this I also tided up function naming a bit (still not
terrific), and removed the unused TcTyBinder type entirely.
compiler/typecheck/TcHsSyn.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcMType.hs
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcTyClsDecls.hs
compiler/typecheck/TcType.hs