Skip to content

No package names in haddock index #2886

@UnkindPartition

Description

@UnkindPartition

The package index generated by stack haddock does not contain the package names. The package names seem to be present for the packages distributed with ghc but not for the packages installed with stack.

Here's a screenshot of my ~/.stack/snapshots/x86_64-linux/lts-7.0/8.0.1/doc/index.html. Notice the difference between, say, BasicTypes (distributed with ghc) and Bio.Core (from the biocore package, installed with stack from hackage).

stack-haddock

It's been a while since I looked at haddock, but my guess is that it has a command line option to specify the package name that stack does not pass.

The practical significance of this is that it makes it harder to search the index page, especially for packages that are named differently from their modules.

Stack version

$ stack --version
Version 1.3.3, Git revision 87068d8edb64e81f4062ae889472ef74452a2b97 (4441 commits) x86_64 hpack-0.15.0

Method of installation

from git master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions