creating documentation links failed with cabal install --haddock-options=--hyperlink-source. is this a bug?

cabal haddock -–hyperlink-source installs documentation with links to source code, which also be on by defualt. cabal install –haddock-options=–hyperlink source does not install hyperlinked source. cabal install –haddock-options=-–hyperlink sourceblehblehbleh doesn’t throw an error, which suggests to me that the first command might also be passing the flags with an error. Whatever the case, seems to me the examples section in cabal --help should really include examples using --with-PROG and --PROG-options. I can't find a good one online. fwiw, cabal install --haddock-option=hyperlink-source DID generate an error in the output: target `hyperlink-source' is not a module name or a source file also, blogged about this here: http://blog.patch-tag.com/2009/10/23/cabal-install-a-package-with-documentat...

On Sat, 2009-10-31 at 10:45 -0500, Thomas Hartman wrote:
cabal haddock -–hyperlink-source
installs documentation with links to source code, which also be on by defualt.
cabal install –haddock-options=–hyperlink source
does not install hyperlinked source.
This is an instance of the lack of the feature described in this ticket: http://hackage.haskell.org/trac/hackage/ticket/517 BTW, you're getting confused between flags for the "cabal haddock" command and the "haddock" command. The --hyperlink-source flag is for the "cabal haddock" command. The haddock tool has no such flag (or anything equivalent) so using --haddock-options= will not help. Duncan
participants (2)
-
Duncan Coutts
-
Thomas Hartman