
Hello, When building a package (on windows) the Haddock stage seems to go wrong.. runghc Setup.hs haddock It's looking for base.haddock (presumably) under C:/ghc/ghc-6.6.1\html\libraries\base but it's actually at.. C:/ghc/ghc-6.6.1\doc\html\libraries\base Does anyone know why it's looking in the wrong place and how can I can get it to look in the right place? (AFAICS there's no way to influence Haddock from the .cabal file, but maybe I'm missing something). Also, if I move the html dir up one level to where it seems to be looking it still doesn't work. Haddock still gives the error.. Warning: cannot use package base-2.1.1: HTML directory C:/ghc/ghc-6.6.1\html\libraries\base does not exist. Thanks -- Adrian Hey

Adrian Hey wrote:
It's looking for base.haddock (presumably) under C:/ghc/ghc-6.6.1\html\libraries\base but it's actually at.. C:/ghc/ghc-6.6.1\doc\html\libraries\base
This may be related to this Fedora bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237398 Probably your cabal package.conf has the wrong paths. Zun.

Roberto Zunino wrote:
Adrian Hey wrote:
It's looking for base.haddock (presumably) under C:/ghc/ghc-6.6.1\html\libraries\base but it's actually at.. C:/ghc/ghc-6.6.1\doc\html\libraries\base
This may be related to this Fedora bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237398
Probably your cabal package.conf has the wrong paths.
Thanks Roberto. If I do the "ghc-pkg describe base" thing it does seem to have the wrong haddock paths with the current Windows build. I guess this must be where Cabal gets it's info from. I did try moving the whole html dir up one level (so it's where the paths say it should be AFAICS) but it still doesn't work. So it looks like there's something else going wrong here too. BTW, does anyone know if are there any plans to include something like haddock-options: in Cabal? There are other things I'd like to do with it (like get it to link to the source code). Regards -- Adrian Hey

Roberto Zunino wrote:
Adrian Hey wrote:
It's looking for base.haddock (presumably) under C:/ghc/ghc-6.6.1\html\libraries\base but it's actually at.. C:/ghc/ghc-6.6.1\doc\html\libraries\base
This may be related to this Fedora bug:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=237398
Probably your cabal package.conf has the wrong paths.
There are two separate bugs here. The above bug is a problem with the Fedora packaging of GHC. There is a similar bug in the Windows packaging of GHC: http://hackage.haskell.org/trac/ghc/ticket/1093 Cheers, Simon
participants (3)
-
Adrian Hey
-
Roberto Zunino
-
Simon Marlow