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> - Conal<br><br><div><span class="gmail_quote">On 1/22/07, <b class="gmail_sendername">Conal Elliott</b>
<<a href="mailto:conal@conal.net">conal@conal.net</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;">I've been working on some haddock-related Cabal tweaks and a "make" include file called "cabal-make", which manages syntax coloring (vis hscolour) with links from the haddock docs, web-based links to other libraries, and wiki-based user comments. It's ready to release for others' use except for one problem (as mentioned below). The --haddock-args flag ends up turning my forward slashes into backslashes (on my WinXP machine), so all of the web links are broken. I'd appreciate suggestions about this problem.
<br><br>You can find an example doc generated by cabal-make (a previous implementation that didn'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> . Suggestions welcome.<br><br>- Conal<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Conal Elliott</b> <<a href="mailto:conal@conal.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
conal@conal.net
</a>><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 <<a href="mailto:ijones@syntaxpolice.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ijones@syntaxpolice.org</a>><br>Cc: cabal-devel <
<a href="mailto:cabal-devel@haskell.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">cabal-devel@haskell.org</a>><br><br></span>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" 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;"> --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;"> "
</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> - Conal</span><div><span>
<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>
</span></div>
</blockquote></div><br>