Make the new ClassOp/DFun selection mechanism work for single-method classes
authorsimonpj@microsoft.com <unknown>
Fri, 13 Nov 2009 11:12:11 +0000 (11:12 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 13 Nov 2009 11:12:11 +0000 (11:12 +0000)
commit3bc73cd67e6cfacd2fc823019f1b6012cdf1ccb4
tree91cac1c912e0c5d564ea76b7b73e5a23637b8e9d
parent014549aea8d61c36dbb498666779e600a6406d20
Make the new ClassOp/DFun selection mechanism work for single-method classes

I'd forgotten the case of single-method classes! I've also improved
the documentation. See
  Note [ClassOp/DFun selection]
  Note [Single-method classes]
both in TcInstDcls
compiler/basicTypes/MkId.lhs
compiler/typecheck/TcInstDcls.lhs