Backpack and multiple public library interop #1363
Description
Haddock gets horribly confused by the use of backpack today.
A quick list of rough edges I've cut myself on recently.
-
It seems to have a hard time finding backpacked modules. Does cabal need to feed
haddock
more information about mixins or something? -
Anything renamed on import causes documentation cross-linking to fail.
-
If a backpack package supplies an instance, even if I import that backpacked module and export the class, then it won't show up on the instance list for my class.
-
reexported-modules
don't show up in the module list at all, forcing use of stubs. -
When a package supplies multiple public libraries each gets separate haddocks, but then hackage doesn't understand anything about that idea.
When working with cabal 3+ and multiple public libraries all of this yields a situation where the haddocks are nigh unreadable.