Problem with packet documentation generated by cabal on windows 7

Hi cafe, I have a problem with haddock documentation created when installing new packages with cabal on windows. The generated html files have all links in the form j:\Users\...\doc\...\xxx.html, but firefox says, it cannot open that link. Actually all links should be prefixed by "file:///". I wonder if this is only on windows so and if there is a solution to this. Is there a cabal or haddock flag for this? Nicu

On Fri, May 25, 2012 at 01:19:11AM +0200, Nicu Ionita wrote:
Hi cafe,
I have a problem with haddock documentation created when installing new packages with cabal on windows. The generated html files have all links in the form j:\Users\...\doc\...\xxx.html, but firefox says, it cannot open that link. Actually all links should be prefixed by "file:///".
I wonder if this is only on windows so and if there is a solution to this. Is there a cabal or haddock flag for this?
It might help to know what version of haddock you have. Here, on my Linux machine, all generated links are relative and hence contain no 'http://' or 'file:///' prefix. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay

I’m having the same problem on my Windows 7 laptop. The solution I’ve found is to use Internet Explorer — it isn’t perfect, but for some reason it is the only browser capable of handling these links.
On Fri, May 25, 2012 at 01:19:11AM +0200, Nicu Ionita wrote:
Hi cafe,
I have a problem with haddock documentation created when installing new packages with cabal on windows. The generated html files have all links in the form j:\Users\...\doc\...\xxx.html, but firefox says, it cannot open that link. Actually all links should be prefixed by "file:///".
I wonder if this is only on windows so and if there is a solution to this. Is there a cabal or haddock flag for this?

Am 25.05.2012 06:49, schrieb Magnus Therning:
On Fri, May 25, 2012 at 01:19:11AM +0200, Nicu Ionita wrote:
Hi cafe,
I have a problem with haddock documentation created when installing new packages with cabal on windows. The generated html files have all links in the form j:\Users\...\doc\...\xxx.html, but firefox says, it cannot open that link. Actually all links should be prefixed by "file:///".
I wonder if this is only on windows so and if there is a solution to this. Is there a cabal or haddock flag for this? It might help to know what version of haddock you have.
Here, on my Linux machine, all generated links are relative and hence contain no 'http://' or 'file:///' prefix.
/M
I have Haskell Platform 2011.2.0.1 and I assumed that haddock comes with it. Now I checked the version - it is 2.9.2 and cabal info tells me that the last version is 2.10.0 and that I don't have the package installed (?). Ok, now I see, haddock is that from the patform and I never install it with cabal... Nicu

On Fri, May 25, 2012 at 6:28 PM, Nicu Ionita
I have Haskell Platform 2011.2.0.1 and I assumed that haddock comes with it. Now I checked the version - it is 2.9.2 and cabal info tells me that the last version is 2.10.0 and that I don't have the package installed (?).
Ok, now I see, haddock is that from the patform and I never install it with cabal...
Also 'cabal' doesn't track executables, only libraries. Antoine

Chrome works well. The "file://" portion at the beginning has got to
do with windows namespace [1] and browser conventions.
On 26 May 2012 02:40, Antoine Latter
Also 'cabal' doesn't track executables, only libraries.
It does update your cabal package binaries, if the package generates one, though. -- 1. http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).as... Regards, Paulo
participants (5)
-
Antoine Latter
-
Artyom Kazak
-
Magnus Therning
-
Nicu Ionita
-
Paulo Pocinho