Move the superclass generation to the canonicaliser
authorsimonpj@microsoft.com <unknown>
Thu, 18 Nov 2010 12:05:33 +0000 (12:05 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 18 Nov 2010 12:05:33 +0000 (12:05 +0000)
commit5688fe994cff4cc70b717918bdbccaaf5236f3af
treefbde4628fc159b773be91b888c2ff755e5429f30
parentdf10461445770a67289c911420a4871b1404dfe3
Move the superclass generation to the canonicaliser

Doing superclass generation in the canonicaliser (rather than
TcInteract) uses less code, and is generally more efficient.

See Note [Adding superclasses] in TcCanonical.

Fixes Trac #4497.
compiler/typecheck/TcCanonical.lhs
compiler/typecheck/TcInteract.lhs