haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

Do I need documentation: True in cabal.project to get documentation built for dependencies

Open pranaysashank opened this issue 2 years ago • 1 comments

I have withHoogle = true in shellFor, but when I run :doc in cabal repl. I get an error

ghc: Can't find any documentation for Network.HTTP.Req.
This is probably because the module was compiled without '-haddock',
but it's also possible that the module contains no documentation.

pranaysashank avatar Oct 13 '23 11:10 pranaysashank

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 10 '24 15:02 stale[bot]

I'm having the same issue. Is there anything I can do to debug?

cdfa avatar Dec 09 '24 08:12 cdfa

you can explicitly pass -haddock option to ghcOptions in the modules to get it working while waiting for it to be fixed (this should also give you documentation on hover when using hls)

pranaysashank avatar Dec 09 '24 09:12 pranaysashank

That works! Thanks!

cdfa avatar Dec 09 '24 17:12 cdfa