-
Notifications
You must be signed in to change notification settings - Fork 237
Inconsistency in html file naming: Data.Bifoldable.html vs. Data-Bifoldable.html #1447
Comments
https://gitlab.haskell.org/ghc/ghc/-/issues/20698 and https://gitlab.haskell.org/ghc/ghc/-/issues/20699 seem somewhat related. |
I can't tell you whether this change was by design or not, but here is some information that I've been able to gather that may be helpful. The format of hyperlinked source URLs is actually controlled partially by Haddock and partially by Cabal. On the Cabal side
On the Haddock sideIf the Other notes
|
Unfortunately, I don't remember why it was done like this—I doubt that there was a very good reason for the change. Most probably it was just simpler to code or I found it more aesthetically pleasing than the hyphen notation as it directly corresponds to Haskell's module path syntax. |
There is an inconsistency in how html filenames are generated for haddock vs. source documentation.
Compare
-> source files under "docs/src" folder contain dot as module separator (Data - dot - Bifoldable)
-> haddock files under "docs" contain hyphen as module separator (Data - hyphen - Bifoldable).
This inconsistency makes it hard to implement "open documentation on hackage" in haskell-language-server, as described in https://github.com/haskell/haskell-language-server/issues/2508
This inconsistency started appearing in relatively recent version of haddock (2.26?).
It seems that older versions used hyphens in
Could you please let me know if this is by design, or unintended consequence of some refactoring?
Or potentially track down in which commit this change happened?
The text was updated successfully, but these errors were encountered: