I think I have finally understood what's going on.<br><br>As Simon pointed out (that was the key insight) mapMaybeFP is referenced inside the RULE, but I'm working on the Lexer to remove old Haddock 0.x comments, and I suspect my patch broke the Lexer, so the GHC version on my branch is interpreting that rule as a normal comment, causing the aforementioned error.<br>
Well, at least I know the problem is just mine and that my patch needs improvement :)<br><br>Thanks SPJ!<br>Alfredo<br><br>On Thursday, 12 June 2014, Alfredo Di Napoli <<a href="mailto:alfredo.dinapoli@gmail.com">alfredo.dinapoli@gmail.com</a>> wrote:<br>
> Hi Simon,<br>> It's strange because I was not getting that before (say 2 weeks ago) and as far as I know I have not changed my build type (always been "quick").<br>> I'll try to see if playing around with -O will change things and report back.<br>
> Thanks!<br>><br>> Alfredo<br>> On 12/giu/2014, at 16:36, Simon Peyton Jones <<a href="mailto:simonpj@microsoft.com">simonpj@microsoft.com</a>> wrote:<br>><br>> Does not happen for me.  Maybe you are compiling without –O (odd, but possible)?  mapMaybeFB is mentioned only inside a RULE, so perhaps it’s regarded as un-referenced without –O?<br>
><br>>  <br>><br>> Simon<br>><br>>  <br>><br>> From: ghc-devs [mailto:<a href="mailto:ghc-devs-bounces@haskell.org">ghc-devs-bounces@haskell.org</a>] On Behalf Of Alfredo Di Napoli<br>> Sent: 12 June 2014 12:31<br>
> To: <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>> Subject: Getting error about unused instances during "sh validate"<br>><br>>  <br>><br>> Hello guys,<br>><br>> am I the only one to get the following when I run "sh validate"?<br>
><br>><br>> libraries/base/Data/Maybe.hs:139:1: Warning:<br>>    Defined but not used: ‘mapMaybeFB’<br>><br>> <no location info>:<br>> Failing due to -Werror.<br>> make[1]: *** [libraries/base/dist-install/doc/html/base/base.haddock] Error 1<br>
> make[1]: *** Waiting for unfinished jobs....<br>> make: *** [all] Error 2<br>><br>><br>> I'm working on this ticket, but I can't see how that can be related:<br>><br>> <a href="https://ghc.haskell.org/trac/ghc/ticket/8226">https://ghc.haskell.org/trac/ghc/ticket/8226</a><br>
><br>> Thanks!<br>> Alfredo