commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.95k stars 842 forks source link

Broken links in index for `--haddock-executables` #6511

Closed mpilgrem closed 4 months ago

mpilgrem commented 4 months ago

Stack Version 2.16.0, Git revision 0f8087c0dfb906f5bb514aa87b88cdd68b5b52f1 (10650 commits) PRE-RELEASE x86_64 has --haddock-executables but the links in the combined documentation do not work. That is because of the following:

It seems to me that the 'lifting up' should not be too complex. However, some thought will need to be given the possibility of name clashes. In that regard, I think that components like executables, test suites and benchmarks depend on libraries and not vice versa.

Sublibraries are, in practice, not an issue at the moment because they are broken with Cabal (the library): https://github.com/haskell/cabal/issues/9586