Zonk the free tvs of a RULE lhs to TyVars
authorSimon Peyton Jones <simonpj@microsoft.com>
Tue, 29 Nov 2016 14:03:46 +0000 (14:03 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 29 Nov 2016 14:05:26 +0000 (14:05 +0000)
commitf8c8de8ebf73cd77faa0249d92f280e33a8d2624
tree7fde6168d426106ed02118b8fd7e8dcb91ff6601
parentabd4a4c13e5dbaac8f1c28d8c9d9446e383f6037
Zonk the free tvs of a RULE lhs to TyVars

Previously we were making them into skolem TcTyVars,
which is wrong for the output of the type checker, which
no TcTyVars should surive.

See Note [Zonking the LHS of a RULE] in TcHsSyn

This was flushed out by the new IfaceTcTyVar thing;
I found some more TcTyVars that were being serialised into
an interface file, which is wrong wrong wrong.
compiler/deSugar/DsBinds.hs
compiler/typecheck/TcHsSyn.hs
compiler/typecheck/TcMType.hs