Fix the zonking of HsWrappers
authorsimonpj@microsoft.com <unknown>
Wed, 10 Sep 2008 08:20:03 +0000 (08:20 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 10 Sep 2008 08:20:03 +0000 (08:20 +0000)
commita62561f71ab41e5ae50a48c98b9ea319eb3f646b
tree93aed1ef9fbd77c2fa1f58c47c18082502773003
parentb7f052c4c50a5de5759a21085a12c19c65d8797c
Fix the zonking of HsWrappers

HsWrappers are horribly inconsistent at the moment. I intended that
  WpLam, WpApp     are for evidence abstraction/application
  WpTyLam, WpTyApp are for type abstraction/application

But when we zonk (WpApp co), where co is a coercion variable, we
get a *coercion* not a coercion *variable*.   So for now I'm making
it into a WpTyApp, which the desugarer handles perfectly well.

(I'd forgotten to zonk it properly at all; that is the bug that
this patch fixes.)
compiler/typecheck/TcHsSyn.lhs