Avoid duplicate error report when renaming HsDoc stuff
authorsimonpj@microsoft.com <unknown>
Fri, 29 Dec 2006 14:15:57 +0000 (14:15 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 29 Dec 2006 14:15:57 +0000 (14:15 +0000)
commit374c57e586a2951377f041b9c449fd50a07c3f36
treea15bd969e17469e5584e9e195348e6a32478f01a
parentd5c5c4eb1d9f6d382d3ef1a12be284a411451788
Avoid duplicate error report when renaming HsDoc stuff

This patch is a bit of a hack to avoid a duplicate error when checking
class C a where
  op :: a -> a
  op2 x = x
(This is tcfail077)

For reasons I don't understand, the decl of op2 generates an HsDeclEntity,
and that gives a renamer error which duplicates the (better) one that
comes from rnMethodBinds.

A better fix might be to get rid of HsDeclEntities altogether.
compiler/rename/RnSource.lhs