cabal, haddock, and --hyperlink-source

I'm getting an error message with cabal's haddock command's --hyperlink-source option. The message (below) says "haddock --hyperlink-source requires Haddock version 0.8 or later", while "haddock --version" says that I have version 2.0. I have the latest cabal and hscolour from hackage and the latest haddock from darcs. I'm using cygwin on WinXP. bash-3.2$ ./setup haddock --hyperlink-source --verbose Creating dist\doc\html\reactive (and its parents) Preprocessing library reactive-0.0... Running hscolour for reactive-0.0... Creating dist\doc\html\reactive\src (and its parents) c:\Haskell\packages\bin\HsColour.exe -print-css -odist\doc\html\reactive\src\hscolour.css c:\Haskell\packages\bin\HsColour.exe -css -anchor -odist\doc\html\reactive\src\Data-IVar.html src\Data\IVar.hs Creating dist\doc\html\reactive\src (and its parents) c:\Haskell\packages\bin\HsColour.exe -print-css -odist\doc\html\reactive\src\hscolour.css c:\Haskell\packages\bin\HsColour.exe -css -anchor -odist\doc\html\reactive\src\Data-Fun.html src\Data\Fun.hs Creating dist\doc\html\reactive\src (and its parents) c:\Haskell\packages\bin\HsColour.exe -print-css -odist\doc\html\reactive\src\hscolour.css c:\Haskell\packages\bin\HsColour.exe -css -anchor -odist\doc\html\reactive\src\Data-Reactive.html src\Data\Reactive.hs Creating dist\build\tmp (and its parents) Creating dist\doc\html\reactive (and its parents) Preprocessing library reactive-0.0... Running Haddock for reactive-0.0... setup.exe: haddock --hyperlink-source requires Haddock version 0.8 or later bash-3.2$ haddock --version Haddock version 2.0, (c) Simon Marlow 2003; ported to the GHC-API by David Waern 2006 bash-3.2$ Ideas? - Conal

I'm getting an error message with cabal's haddock command's --hyperlink-source option. The message (below) says "haddock --hyperlink-source requires Haddock version 0.8 or later", while "haddock --version" says that I have version 2.0. I have the latest cabal and hscolour from hackage and the latest haddock from darcs. I'm using cygwin on WinXP.
The problem is that at the time of writing the Cabal support for Haddock 2.0, Haddock didn't support links to source code (of course, the error message is still wrong). Now it does however, since I've merged over everything except hoogle support from the old Haddock. So, Cabal should be updated to support --hyperlink-source also for Haddock 2. Thanks for noticing this. David

On Sun, 2007-12-09 at 12:05 +0100, David Waern wrote:
I'm getting an error message with cabal's haddock command's --hyperlink-source option. The message (below) says "haddock --hyperlink-source requires Haddock version 0.8 or later", while "haddock --version" says that I have version 2.0. I have the latest cabal and hscolour from hackage and the latest haddock from darcs. I'm using cygwin on WinXP.
The problem is that at the time of writing the Cabal support for Haddock 2.0, Haddock didn't support links to source code (of course, the error message is still wrong). Now it does however, since I've merged over everything except hoogle support from the old Haddock. So, Cabal should be updated to support --hyperlink-source also for Haddock 2.
Thanks for noticing this.
Could someone open a bug about this so we don't forget please. http://hackage.haskell.org/trac/hackage/ Duncan

2007/12/9, Duncan Coutts
On Sun, 2007-12-09 at 12:05 +0100, David Waern wrote:
I'm getting an error message with cabal's haddock command's --hyperlink-source option. The message (below) says "haddock --hyperlink-source requires Haddock version 0.8 or later", while "haddock --version" says that I have version 2.0. I have the latest cabal and hscolour from hackage and the latest haddock from darcs. I'm using cygwin on WinXP.
The problem is that at the time of writing the Cabal support for Haddock 2.0, Haddock didn't support links to source code (of course, the error message is still wrong). Now it does however, since I've merged over everything except hoogle support from the old Haddock. So, Cabal should be updated to support --hyperlink-source also for Haddock 2.
Thanks for noticing this.
Could someone open a bug about this so we don't forget please.
Here's a patch instead. David

On Sun, 2007-12-09 at 19:11 +0100, David Waern wrote:
2007/12/9, Duncan Coutts
: Thanks for noticing this.
Could someone open a bug about this so we don't forget please.
Here's a patch instead.
Applied. Thanks. Duncan
participants (4)
-
Conal Elliott
-
David Waern
-
David Waern
-
Duncan Coutts