RE: [Haskell-cafe] Problem with Hyperlinking Haddock-documentation

On 27 January 2005 09:03, Daniel Fischer wrote:
Am Mittwoch, 26. Januar 2005 21:49 schrieben Sie:
On Wed, 26 Jan 2005, Daniel Fischer wrote:
Maybe somebody can enlighten me.
When I run haddock and put the html files e.g. in directory ~/bar/foo, any references to things defined in the Prelude or the libraries are linked to, say ~/bar/foo/Prelude.html#t%3AFractional, which of course does not exist, because the documentation for the Prelude is elsewhere.
How can I tell haddock to link such references to where Prelude.html actually is?
I add an option like
-i /usr/local/share/ghc-6.2/html/libraries/base/base.haddock
The problem still stands, the link is to ~/bar/foo/Prelude.html, not to /usr/local/.... where Prelude.html is.
Does anybody know what to do?
You probably want to invoke Haddock like this: haddock -i/usr/share/ghc-6.2.2/html/libraries/base,/usr/share/ghc-6.2.2/librarie s/base/base.haddock (all on one line). The first path specifies the directory of the HTML for the base package, the second path specifies the .haddock file for the base package. Cheers, Simon

Am Donnerstag, 27. Januar 2005 13:38 schrieben Sie:
You probably want to invoke Haddock like this:
haddock -i/usr/share/ghc-6.2.2/html/libraries/base,/usr/share/ghc-6.2.2/librarie s/base/base.haddock
(all on one line). The first path specifies the directory of the HTML for the base package, the second path specifies the .haddock file for the base package.
Cheers, Simon
That's it. Many thanks. Obviously I misunderstood the optionality of the path. BTW, would it be worthwhile to let haddock use a list of default interfaces, say on installation it would create a file with -i /usr/...../base.haddock -i /usr/...../parsec.haddock &cetera in it, later a user might add other often used interfaces ? Okay, writing one's own script isn't too hard, so there's no real need for it, but it would be nice for dummies like me. Cheers returned, Daniel
participants (2)
-
Daniel Fischer
-
Simon Marlow