For single-method classes use newtypes
authorsimonpj@microsoft.com <unknown>
Mon, 1 Nov 2010 08:07:36 +0000 (08:07 +0000)
committersimonpj@microsoft.com <unknown>
Mon, 1 Nov 2010 08:07:36 +0000 (08:07 +0000)
commitd93785d99261a433075dcbac8c388730a4dec64f
tree84373fec44cdc978e1d21f142d98c603dcf590e3
parent9201a2d104103c2271a03d035555d2bef8a625bb
For single-method classes use newtypes

This clears up an awkward hack for exprIsConApp_maybe, and
works better too.  See Note [Single-method classes] in
TcInstDcls.
compiler/basicTypes/MkId.lhs
compiler/deSugar/DsBinds.lhs
compiler/typecheck/TcInstDcls.lhs