The build is broken? (Haddock parse error)

Richard Eisenberg eir at cis.upenn.edu
Thu Jul 17 12:06:20 UTC 2014


Oops. I was relying on Travis's validation, which skips haddocking.

This is most likely why Phab's build failed.

Thanks for fixing it!
Richard

On Jul 17, 2014, at 4:44 AM, Simon Hengel <sol at typeful.net> wrote:

> On Thu, Jul 17, 2014 at 08:21:43AM +0000, Simon Peyton Jones wrote:
>> 
>> | >     parse error on input ‘-- *kind* and role of its argument.
>> | Luckily,
>> | > laziness should’
>> | >
>> | > [1] http://haskell.inf.elte.hu/builders/freebsd-amd64-
>> | head/322/10.html
>> | > _______________________________________________
>> | > ghc-devs mailing list
>> | > ghc-devs at haskell.org
>> | > http://www.haskell.org/mailman/listinfo/ghc-devs
>> | >
>> | 
>> | ‘-- *’ is Haddock syntax for headers and because GHC doesn't expect a
>> | Haddock comment there, it chucks a parse error. I think just adding a
>> | leading space or turning it into {- -} style comment would work.
>> | 
>> | In all honesty, GHC should just warn and treat as regular comments at
>> | these cases rather than failing.
>> 
>> I agree.  I've been bitten by this several times.  But don't you mean "Haddock should just warn..."?
> 
> The corresponding code is in GHC (only used with Opt_Haddock).  So we
> need to change this in GHC.
> 
> Cheers,
> Simon
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs
> 



More information about the ghc-devs mailing list