getting cabal to pass more info to haddock

Conal Elliott conal at conal.net
Sun Jan 7 15:32:01 EST 2007


Thanks.  Looks simple enough, and I compiled up a version that works this
way.  I don't know how to get ghc to use it.  When I "./setup install", I
get Cabal-1.1.7 registered, but my ghc-6.6 wants to use Cabal-1.1.6instead.

Worse, I unregistered 1.1.6, and now I can't use cabal at all with ghc.  Do
you know how get 1.1.6 back short of re-installing ghc?

BTW, I noticed in the function "haddock" in Distribution.Simple, the line
"++ programArgs confHaddock", which leads me to suspect that there's an
approach getting extra Haddock arguments passed by tweaking my Setup.lhs.
Is that so?

Cheers,  - Conal


On 1/7/07, Duncan Coutts <duncan.coutts at worc.ox.ac.uk> wrote:
>
> On Sun, 2007-01-07 at 10:42 -0800, Conal Elliott wrote:
> > I want Cabal to pass the source-module and source-entity flags to
> > haddock.  I can probably figure out how to add these flags into the
> > Cabal source (following the example of --hoogle), but I wonder if
> > there's a better way.  Any suggestions?
>
> runhaskell Setup.hs configure --haddock-args="--source-module=..."
>
> > If source mod, is there a process for me to follow?  To whom would I
> > send the patch?
>
> If you use 'darcs send' to send in your patch then it should just work,
> the address has already been set. If darcs send doesn't work for you (eg
> if you've not got local mail working) then you can email it to the
> cabal-devel at haskell.org mailing list.
>
> Duncan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20070107/44e293fd/attachment-0001.htm


More information about the Libraries mailing list