Refactor error recovery slightly
authorsimonpj@microsoft.com <unknown>
Fri, 2 Nov 2007 13:01:15 +0000 (13:01 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 2 Nov 2007 13:01:15 +0000 (13:01 +0000)
commitb9a98f56bf88c69a13b477ab8422fbd71df20019
tree71fecb9a58d9236b641439a1ec712ce545819892
parentbab9e4508ebed960ad07a8a47f12b245d23fcf1f
Refactor error recovery slightly

Mostly this patch is refacoring, but it also avoids post-tc zonking if
the typechecker found errors.  This is good because otherwise with
DEBUG you can get the "Inventing strangely-kinded TyCon" warning.
compiler/typecheck/TcRnDriver.lhs
compiler/typecheck/TcTyClsDecls.lhs