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 &amp; 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=&quot;\</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp; --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;">&nbsp; --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;">&nbsp; &quot;
</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>&nbsp;&nbsp; - Conal<br><br><div><span class="gmail_quote">On 1/17/07, 
<b class="gmail_sendername">Isaac Jones</b> &lt;<a href="mailto:ijones@syntaxpolice.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ijones@syntaxpolice.org
</a>&gt; 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.&nbsp;&nbsp;Thanks for this!&nbsp;&nbsp;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?&nbsp;&nbsp;Currently it<br>does something like this:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --ar-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the args to ar
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --haddock-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; give the args to haddock<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --ld-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the args to ld<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --pfesetup-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the args to pfesetup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --ranlib-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the args to ranlib
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --runghc-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the args to runghc<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --runhugs-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; give the args to runhugs<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --tar-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; give the args to tar<br><br>it would be nice to concerve lines with sometthing like this:
<br><br>--ar-arg=ARG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --ar-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;give the arg or args to ar<br>--haddock-arg=ARG&nbsp;&nbsp;--haddock-args=ARGS&nbsp;&nbsp;&nbsp;&nbsp; give the arg or args to haddock<br>etc<br><br>The patch you sent seemed like an empty file to me.&nbsp;&nbsp;Maybe I&#39;m just
<br>being nihilistic ;)<br><br>peace,<br><br>&nbsp;&nbsp;isaac<br></blockquote></div><br>