-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haddocks are missing for re-exported modules (in particular, at https://hackage.haskell.org/package/Cabal-3.8.1.0) #8354
Comments
Does this give a solution haskell/haddock#547? Could somebody research and experiment? |
Quick skimming suggests that a workaround may be to use |
@Mikolaj I think I can't reproduce it. Could you describe more precisely what you're doing. E.g. which version of cabal-install you use to build the docs and the command-line arguments. With versions I tried so far, I more or less consistently get:
|
With cabal master and GHC 9.4.1 |
@ulysses4ever: I used cabal 3.8.1.0 and almost the standard commandline from the bottom of https://hackage.haskell.org/upload, which I think Hackage doc builder uses as well (and gets the missing links):
However, I think
Let me know and I will try to reproduce locally. I might have used GHC 8.10.7 or older to avoid #8326, though I write there this is fixed? |
Interestingly, the same documentation in https://downloads.haskell.org/ghc/latest/docs/libraries/index.html doesn't have the problem of ignored re-exported modules. Does anybody know where the script that generates that documentation is (e.g., inside hadrian configs in the GHC build tree somewhere)? What special flags are used in there? @bgamari maybe? |
Thank you. I can see
so that's more than I listed above and also more than what Hackage uses (and what Hackage recommends on the upload file, which I hope is the same). Does |
On the Cabal meeting this week it was suggested that this qualifies as an upstream problem. Please, feel free to raise an objection if you think it's wrong. We'd love to hear from someone with a haddock/ghc-side-of-things perspective. |
@gbaz says: "<sclv> we could teach haddock to generate docstubs for rexported modules that just say where they are re-exported from, and that might suffice as a start, then later teach hackage-server to make use of that to find links. |
That happens both with Hackage-generated haddocks and manually generated. A workaround (extra flags? a scripts that copies haddocks over module-by-module?) would be acceptable, but ideally we'd find a better solution. Preferably, the solution should not require changes to how the package creator re-exports modules, unless that's unavoidable and well documented.
The text was updated successfully, but these errors were encountered: