Change rewritableTyVarsOfType to anyRewritableTyVar
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Feb 2017 13:54:48 +0000 (13:54 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 10 Feb 2017 14:01:40 +0000 (14:01 +0000)
commit76244ec2cbdef8e3cd54466ae0b55ecffb81817c
treef62f5f1fea4f3b520eba963b0928e51a39f73d0e
parent3211fa06744731ec117219fe50a304e952e072ef
Change rewritableTyVarsOfType to anyRewritableTyVar

This fixes the regression in FrozenErrorTests, eliminates the
awkward "crash on forall" in rewritableTyVars, and makes it more
efficient too.
compiler/typecheck/TcSMonad.hs
compiler/typecheck/TcType.hs
testsuite/tests/typecheck/should_fail/FrozenErrorTests.stderr