
I've been using Cygwin's bash & make, but I just verified that I get the same behavior when I use cmd.exe directly. I run this command (in cmd.exe): setup configure --disable-use-packages --haddock-args=" --read-interface=
http://haskell.org/ghc/docs/latest/html/libraries/base,c:/ghc/ghc-6.6/doc/ht... http://haskell.org/ghc/docs/latest/html/libraries/mtl,c:/ghc/ghc-6.6/doc/htm... http://wxhaskell.sourceforge.net/doc,c:/Haskell/wxhaskell/out/doc/wxhaskell...." --prefix=c:/Haskell/packages --datadir=c:/Haskell/packages
and the resulting.setup-config file's withProgram field contains this element: ("haddock",Program {programName = "haddock", programBinName = "haddock",
programArgs = ["--read-interface=http:\\\\haskell.org\\ghc\\docs\\latest\\html\\libraries\\base,c:\\ghc\\ghc- 6.6\\doc\\html\\libraries\\base\\base.haddock ","--read-interface=http:\\\\haskell.org\\ghc\\docs\\latest\\html\\libraries\\mtl,c:\\ghc\\ghc- 6.6\\doc\\html\\libraries\\mtl\\mtl.haddock","--read-interface=http:\\\\wxhaskell.sourceforge.net\\doc,c:\\Haskell\\wxhaskell\\out\\doc\\wxhaskell.haddock"], programLocation = FoundOnSystem "c:\\Haskell\\packages\\Haskell\\bin\\haddock.exe"})
and many other fields with similar translation of file paths.
- Conal
On 1/25/07, Duncan Coutts
On Wed, 2007-01-24 at 22:51 -0800, Conal Elliott wrote:
Do forward slashes get turned into backslashes for xxxx-args arguments in Windows?
Are you using a shell like Mingw's MSYS? If so it does do that kind of translation. If you're getting that behaviour when using an ordinary windows command prompt (cmd.exe) then it's a cabal issue.
Duncan