Skip to content

Haddocks for base-4.19 has broken source links to ghc-prim

When clicking on "Source" for Symbol here (1.) we get to a non-existing page (2.):

  1. https://hackage.haskell.org/package/base-4.19.1.0/docs/GHC-TypeLits.html#t:Symbol
  2. https://hackage.haskell.org/package/ghc-prim-0.11.0-dca4/docs/src/GHC.Types.html#Symbol

Note the somewhat fishy hash part -dca4 in the link to ghc-prim. When I remove this part, I get to the correct location:

So I looks like the documentation for base uploaded with GHC 9.8.2 has been incorrectly generated.

The same problem exists for base-4.19.0.0:

  1. https://hackage.haskell.org/package/base-4.19.0.0/docs/GHC-Exts.html#t:Symbol
  2. https://hackage.haskell.org/package/ghc-prim-0.11.0-997e/docs/src/GHC.Types.html#Symbol

Maybe it is a bug in the tooling (haddock). But a script could be run on the generated documentation to remove the stray hashes before uploading the docs to hackage...

This seems to be a new problem, base-4.18 does not suffer from it:

  1. https://hackage.haskell.org/package/base-4.18.0.0/docs/GHC-Exts.html#t:Symbol
  2. https://hackage.haskell.org/package/ghc-prim-0.10.0/docs/src/GHC.Types.html#Symbol
Edited by Andreas Abel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information