Fix an outright bug in the implementation of default decls
authorSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2011 16:03:26 +0000 (16:03 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 23 Dec 2011 16:03:26 +0000 (16:03 +0000)
commit8785726b57ccd44c5451385de61913a79fe02eb7
tree56a389a64a4cff0e3b240710c8fa26a61816f918
parentddeb70b333a94990dbdf432303cb1f10f2d3062d
Fix an outright bug in the implementation of default decls
for associated types (fixes Trac #5719)

The bug was that we ended up quantifying the new AT instance
over the wrong set of type variables, and that led to confusing
chaos.
compiler/typecheck/TcInstDcls.lhs
compiler/types/Class.lhs