Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Haddock generates Source links to re-exported items without module names (under Nix; possibly in general) #1498

Open
@lf-

Description

@lf-

I noticed this in Esqueleto although it is probably reproducible in packages with fewer dependencies.

Reproduction:

$ nix-build '<nixpkgs>' -A haskellPackages.esqueleto.doc
/nix/store/9mh0h5ll38wxwan66r79n7ysfvfsw16v-esqueleto-3.5.5.0-doc
$ firefox result-doc/share/doc/esqueleto-3.5.5.0/html/Database-Esqueleto.html#t:PersistField

Then click the Source link next to PersistField, which has an href property of file:///nix/store/d121c0wdrwsnms2m9s48fbw7104rqmbz-persistent-2.13.3.5-doc/share/doc/persistent-2.13.3.5/html/src, missing a file name. This is significantly more troublesome on Hoogle which doesn't show directory contents.

This is likely a related shape of bug as was fixed in #1482 but it's on the module pages rather than in the hyperlinker itself.

Versions:

dev/nixpkgs2 - [remotes/origin/HEAD] » nix-shell -p haskellPackages.ghc

[nix-shell:~/dev/nixpkgs2]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.0.2

[nix-shell:~/dev/nixpkgs2]$ haddock --version
Haddock version 2.25.1, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions