-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Correct way to build a project in order to have Haddocks displayed on hover #4210
Comments
The package needs to be compiled with
Then the haddock documentation is embedded into the |
Gosh, is this really still a problem? Is there a cabal bug here? Should |
I think |
Thanks! It worked! For stack: |
Not sure how to do it via package.yaml, but in stack you can enable building haddocks for all your dependencies by putting this at the top level of you stack.yaml: ghc-options:
"$everything": -haddock See https://docs.haskellstack.org/en/stable/yaml_configuration/#ghc-options for details. |
@jhrcek Yep! It worked! Thanks guys! |
For those that use cabal, edit the
This enables docs globally (not sure why this is not the default) |
Just fyi, because on older GHC versions, haddock errors, such as
would result in a hard-error. |
Your environment
haskell-language-server version: 2.7.0.0
editor: neovim
What's wrong?
It appears that the haddocks of an identifier are unreliably shown.
For a local identifier, no problem
But for dependencies it's not a granted.
I have a
cabal.project
file with the following:What am I missing? I thought I had covered all the cases?
Debug information
Build log:
The text was updated successfully, but these errors were encountered: