Thanks for the explanation &amp; suggestions, Simon.&nbsp; Your &quot;other workaround&quot; worked for me: I replaced $topdir\\html with c:\\ghc\\ghc-6.6\\doc\\html in my package.conf.&nbsp; Note the *doc*, so a straightforward $topdir splice would not do the trick.&nbsp;&nbsp; Cheers,&nbsp; - Conal
<br><br><div><span class="gmail_quote">On 12/5/06, <b class="gmail_sendername">Simon Marlow</b> &lt;<a href="mailto:simonmarhaskell@gmail.com">simonmarhaskell@gmail.com</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;">
Conal Elliott wrote:<br>&gt; I'm running haddock for the first time, via cabal.&nbsp;&nbsp;I get the following<br>&gt; message when i do &quot;runhaskell Setup.hs haddock&quot; on monadLib:<br>&gt;<br>&gt;&nbsp;&nbsp;Warning: cannot use package
base-2.0:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; HTML directory $topdir\html\libraries\base does not exist.<br>&gt;<br>&gt; I do have c:/ghc/ghc-6.6/doc/html/libraries/base/.&nbsp;&nbsp;Is there some way i<br>&gt; can let cabal know how to find it?&nbsp;&nbsp;What is $topdir about?
<br><br>This is due to the way GHC is installed on Windows, the package database doesn't<br>have hardcoded pathnames, the idea being that you can move your GHC anywhere in<br>the filesystem and it will still work.<br><br>
Unfortunately this means that Haddock can't find the documentation for the packages.<br><br>One workaround is to specify the paths by hand, using Haddock's --read-interface<br>flag.&nbsp;&nbsp;You're using Haddock via Cabal though, so that doesn't work too well.
<br>The other workaround is to find GHC's package.conf file and replace the string<br>$topdir with the literal path (&quot;c:/ghc/ghc-6.6&quot; in your case - perhaps you have<br>to append &quot;/doc&quot; for the haddock fields, though).
<br><br>I'll file a bug report against Cabal, we should really make this work.<br><br>Cheers,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simon<br></blockquote></div><br>