Do forward slashes get turned into backslashes for xxxx-args arguments in Windows?  Could someone point me to the code that does it?  I could add a setup flag that disables the translation, or maybe detect the "http://" and just preserve what looks to be URLs.
<br><br>BTW, cabal-make now has a target that auto-subscribes to all wiki talk pages generated for a project.<br><br>&nbsp; - Conal<br><br><div><span class="gmail_quote">On 1/22/07, <b class="gmail_sendername">Conal Elliott</b>
 &lt;<a href="mailto:conal@conal.net">conal@conal.net</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;">I&#39;ve been working on some haddock-related Cabal tweaks and a &quot;make&quot; include file called &quot;cabal-make&quot;, which manages syntax coloring (vis hscolour) with links from the haddock docs, web-based links to other libraries, and wiki-based user comments.&nbsp; It&#39;s ready to release for others&#39; use except for one problem (as mentioned below).&nbsp; The --haddock-args flag ends up turning my forward slashes into backslashes (on my WinXP machine), so all of the web links are broken.&nbsp; I&#39;d appreciate suggestions about this problem.
<br><br>You can find an example doc generated by cabal-make (a previous implementation that didn&#39;t quite fit cabal) at <a href="http://darcs.haskell.org/packages/TV/doc/html/Interface-TV-Output.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://darcs.haskell.org/packages/TV/doc/html/Interface-TV-Output.html
</a> .&nbsp; Suggestions welcome.<br><br>- Conal<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Conal Elliott</b> &lt;<a href="mailto:conal@conal.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
conal@conal.net
</a>&gt;<br>Date: Jan 19, 2007 5:18 PM<br>Subject: Re: [Conal Elliott] Re: getting cabal to pass more info to haddock<br>To: Isaac Jones &lt;<a href="mailto:ijones@syntaxpolice.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ijones@syntaxpolice.org</a>&gt;<br>Cc: cabal-devel &lt;
<a href="mailto:cabal-devel@haskell.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cabal-devel@haskell.org</a>&gt;<br><br></span>Hi Isaac.&nbsp; Now I see why the patch file was empty.&nbsp; And after some head-scratching about your note below, I&#39;m glad the patch was empty.&nbsp; I hadn&#39;t noticed the --xxx-args flags for configure, and instead added a new haddock flag.&nbsp; 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


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><span><br>&nbsp;&nbsp; - Conal</span><div><span>
<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>



</span></div>

</blockquote></div><br>