haddock icon indicating copy to clipboard operation
haddock copied to clipboard

Wrong link in QuickJump for modules with same names

Open yutotakano opened this issue 4 years ago • 0 comments

This is a bug that the QuickJump search result link is wrong when there is a module that shares the same namespace. Our project has a Utils module, for example, which on Haddock seems to conflict with the scientific package's Utils module.

The situation is explained in the photo. I am in the owenbot package, in which the module Utils exists. The QuickJump search results accurately give me functions that exist in this module. However, the link to which it is pointing (and thus where the user is directed upon clicking), is in the scientific package. Screenshot

This results in a 404. Ideally, we should be naming our packages as TopLevelSomething.Utils (and so should the scientific package), but given how the search results are able to find the function themselves, could the link also perhaps be fixed?


The documentation was generated Haddock version 2.23.0, using the command stack haddock . --haddock-hyperlink-source.

yutotakano avatar May 07 '21 13:05 yutotakano