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
We enabled doHaddock in 8ae175805d1e43ec88d89ba887b8795cc6f7d2fc, which gives us docs on hover in HLS, and therefore must be passing -haddock to GHC. But it's not clear from the documentation whether it's also supposed to replicate Cabal's --enable-documentation flag, which is required for full Haddock browsing functionality in HLS.
Relatedly, cabal haddock vonnegut (or make docs) produces HTML which doesn't contain any links to definitions from external packages, even base. In cabal-based projects, without Nix, I've found that links to libraries which ship with GHC (base, containers, stm etc.) are always present, and --enable-documentation is required for third-party libs.
The text was updated successfully, but these errors were encountered:
If we set --enable-documentation in our Cabal files, does that fix both issues?
No, it doesn't seem to make any visible difference.
(that is, adding documentation: True to vonnegut/backend/cabal.project, which should be the same as passing --enable-documentation to every invocation of cabal build etc.)
Can you file this as an issue against haskell.nix? It sounds like something might be going on under the hood that's causing this not to work as expected.
We enabled
doHaddock
in 8ae175805d1e43ec88d89ba887b8795cc6f7d2fc, which gives us docs on hover in HLS, and therefore must be passing-haddock
to GHC. But it's not clear from the documentation whether it's also supposed to replicate Cabal's--enable-documentation
flag, which is required for full Haddock browsing functionality in HLS.Relatedly,
cabal haddock vonnegut
(ormake docs
) produces HTML which doesn't contain any links to definitions from external packages, evenbase
. In cabal-based projects, without Nix, I've found that links to libraries which ship with GHC (base, containers, stm etc.) are always present, and--enable-documentation
is required for third-party libs.The text was updated successfully, but these errors were encountered: