Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #148 (closed defect: package issue)

Opened 7 years ago

Last modified 5 years ago

Firefox dislikes Haddock master index

Reported by: Orphi Owned by: DavidWaern
Priority: major Milestone:
Component: haddock Keywords:


If you edit the cabal configuration file and add the lines

  documentation: True
  doc-index-file: $datadir\doc\index.html

then cabal-install generates a master package index every time it installs a new package. Internet Explorer is perfectly happy with this page, and the W3C validator passes it, but Firefox dislikes it.

Specifically, Firefox won't follow any of the links, complaining that "the transfer protocol is not registered". Basically, all of the links are absolute paths that begin "C:\Documents and Settings\...", and Firefox apparently thinks that "C:" is a transfer protocol specification, just like "http:" or "mailto:". (I'm using Firefox 3.5 for Windows, in case it makes a difference.)

Note that this bug does not affect the index of packages supplied with HP, which uses relative paths. This index page works with every browser I've tried. It's the absolute paths in the cabal-install package index that are failing.

Since the document index is always in the folder above the individual package documentation, I would suggest that making Haddock always use relative paths would fix this. (The alternative is to prefix all absolute paths with "file:", which seems to make Firefox happy.)

Change History

Changed 7 years ago by Orphi

I forgot to state that this is for HP 2010.2.0.0 (and all previous versions I've tried, actually, but the important point is that it's still an issue in the latest release).

Changed 5 years ago by MtnViewMark

  • status changed from new to closed
  • resolution set to package issue
Note: See TracTickets for help on using tickets.