In an AbsBinds, the 'dicts' can include EqInsts
authorsimonpj@microsoft.com <unknown>
Sat, 27 Oct 2007 15:49:03 +0000 (15:49 +0000)
committersimonpj@microsoft.com <unknown>
Sat, 27 Oct 2007 15:49:03 +0000 (15:49 +0000)
commit6bb651084a0ebd572739ab9319c800c6ad83eb56
tree41b2e968cfdc1af1310013b9da00cee825d20be0
parent0f8aee2a98bdbeacb4eb04e2e280fe956f53c0b6
In an AbsBinds, the 'dicts' can include EqInsts

An AbsBinds abstrats over evidence, and the evidence can be both
Dicts (class constraints, implicit parameters) and EqInsts (equality
constraints).  So we need to
  - use varType rather than idType
  - use instToVar rather than instToId
  - use zonkDictBndr rather than zonkIdBndr in zonking

It actually all worked before, but gave warnings.
compiler/typecheck/TcBinds.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcInstDcls.lhs
compiler/typecheck/TcSimplify.lhs