patch applied (ghc): Avoid duplicate error report when renaming HsDoc stuff

Simon Peyton Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061229142223.GA25788__33288.9557154433$1167402161$gmane$org@cvs.haskell.org>
Fri Dec 29 06:15:57 PST 2006  [email protected]
  * 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.
  
  

    M ./compiler/rename/RnSource.lhs -57 +65
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.