haddock suggestion -- %{FILE}

Simon Marlow simonmarhaskell at gmail.com
Wed Jan 17 05:15:59 EST 2007

Conal Elliott wrote:
> I did get working again by commenting out the "-optP-P" that gets passed 
> to Haddock.  Now I want to eliminate my local mod.  I could easily add a 
> another Cabal Haddock flag that says to omit the -optP-P, but I prefer 
> the solution of checking the Haddock version number, since it would 
> always do the right thing with no intervention.  Can anyone give me 
> hints about how to do the version check?

Take a look at how the GHC version check is done - it should be pretty similar.


More information about the cabal-devel mailing list