Kill off ifaceTyVarsOfType
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Nov 2016 12:26:24 +0000 (12:26 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 25 Nov 2016 17:46:50 +0000 (17:46 +0000)
commita5a392649b10f956aaf3c84ac9321e242a383bbe
tree61692100e02b2e80a2d07de6e665581d05374257
parent83a952d14012ff4706a366a3155712f8caa69ead
Kill off ifaceTyVarsOfType

IfaceTypes are really not well suited to finding free variables etc.
Nevertheless, there was quite a lot of code to do just that; but it
was only used to see if a kind is variable-free so as to decide
whether to print a forall binder.

This patch simplifies to deal with just that case, replacing all
the free-vars stuff with just ifTypeIsVarFree
compiler/iface/IfaceType.hs