You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stack generates haddocks for the unnamed library component in the cabal file and creates an index for that.
Actual
Stack generates and shows the index for a random internal library instead of the main (exposed) one. Judging from the output, it actually generates the index for the main library but then insists to generate haddocks for the other library as well and overwrites the first index.
mpilgrem
changed the title
stack haddock: Wrong index for project with internal libraries
stack haddock: Wrong index for package with sublibraries
Jan 2, 2024
mergifybot
pushed a commit
to swarm-game/swarm
that referenced
this issue
Jan 3, 2024
Encountered this bug: commercialhaskell/stack#5254 (comment)
Fixed by using `cabal` to generate haddocks instead of `stack`.
Also bumped `cabal-version` to latest and adjusted `swarm.cabal` to conform.
Steps to reproduce
For example:
git clone https://git8.cs.fau.de/software/copar.git
stack haddock --open copar:lib
Expected
Stack generates haddocks for the unnamed library component in the cabal file and creates an index for that.
Actual
Stack generates and shows the index for a random internal library instead of the main (exposed) one. Judging from the output, it actually generates the index for the main library but then insists to generate haddocks for the other library as well and overwrites the first index.
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: