Hi Isaac. Now I see why the patch file was empty. And after some head-scratching about your note below, I'm glad the patch was empty. I hadn't noticed the --xxx-args flags for configure, and instead added a new haddock flag. Giving a flag to configure makes a lot more sense.
<br><br>So now I have just a new pair of flags enable-use-packages & disable-use-packages, which control whether haddock gets automatically-generated --use-package flags.<br><br>My makefile are now performing this sort of incantation:
<br><br><span style="font-family: courier new,monospace;">./setup configure --disable-use-packages --haddock-args="\</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
--read-interface=<a href="http://haskell.org/ghc/docs/latest/html/libraries/base,c:/ghc/ghc-6.6/doc/html/libraries/base/base.haddock">http://haskell.org/ghc/docs/latest/html/libraries/base,c:/ghc/ghc-6.6/doc/html/libraries/base/base.haddock
</a> \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> --read-interface=<a href="http://haskell.org/ghc/docs/latest/html/libraries/mtl,c:/ghc/ghc-6.6/doc/html/libraries/mtl/mtl.haddock">
http://haskell.org/ghc/docs/latest/html/libraries/mtl,c:/ghc/ghc-6.6/doc/html/libraries/mtl/mtl.haddock</a> \</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "
</span><br><br>The only problem is --haddock-args ends up turning my forward slashes into backslashes, so all of the web links are broken.<br><br>Any advice?<br><br> - Conal<br><br><div><span class="gmail_quote">On 1/17/07,
<b class="gmail_sendername">Isaac Jones</b> <<a href="mailto:ijones@syntaxpolice.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ijones@syntaxpolice.org
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Conel. Thanks for this! It sounds like the ideas from your<br>makefile could be used for Hackage for generating nice Haddock :)<br><br>There is a general meachanism for adding --foo-args for each Program<br>that cabal knows about; can you use this meachanism to add --foo-arg
<br>as well, instead of special-casing for haddock?<br><br>If you do that, can you make the help output not suck? Currently it<br>does something like this:<br><br> --ar-args=ARGS give the args to ar
<br> --haddock-args=ARGS give the args to haddock<br> --ld-args=ARGS give the args to ld<br> --pfesetup-args=ARGS give the args to pfesetup<br> --ranlib-args=ARGS give the args to ranlib
<br> --runghc-args=ARGS give the args to runghc<br> --runhugs-args=ARGS give the args to runhugs<br> --tar-args=ARGS give the args to tar<br><br>it would be nice to concerve lines with sometthing like this:
<br><br>--ar-arg=ARG --ar-args=ARGS give the arg or args to ar<br>--haddock-arg=ARG --haddock-args=ARGS give the arg or args to haddock<br>etc<br><br>The patch you sent seemed like an empty file to me. Maybe I'm just
<br>being nihilistic ;)<br><br>peace,<br><br> isaac<br></blockquote></div><br>