-
Notifications
You must be signed in to change notification settings - Fork 696
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
Add flag to direct documentation to given location #8270
Comments
Thank you for the report. So where is the documentation landing, if not where you expect it? Does creating the directory by hand help? Could you install cabal-install-3.8.1.0-rc1, as describe here https://discourse.haskell.org/t/cabal-3-8-pre-released/, and verify that the bug persists? Also. a newer GHC could help, at least 8.10.7, to be obtained from ghcup as well. |
There are several issues at play here. Also, just FYI, the
Is there a way to install only docs? So that |
Thank you for the analysis. Hackage (at the bottom of https://hackage.haskell.org/upload) seems content to recommend |
The reason I assumed the chain of directories is the problem is the Reddit thread from apparently the same author: https://www.reddit.com/r/haskellquestions/comments/vi0tcm/how_to_redirect_cabal_haddock_output_to_a Also, the docs could be improved. We can't substitute it with references to Hackage pages on the bug tracker. And for a casual user the relationship between cabal and Hackage is not apparent, so these references can be surprising. |
Is there really no flag that would allow the user to redirect the docs to a location of their choice? |
Yes, I think so. But the feature request is reasonable and a patch would probably be accepted. after some UI bikeshedding (e.g., |
--docdir
and--htmldir
flags do not affect the location of documentation that is generated bycabal haddock
.To reproduce the bug I have a minimal project with the following structure:
Test.hs
is an empty module:Test.cabal
:I would assume that the following flags would affect the location of documentation and put it in
Test/Docs
next to the source folder and the cabal file. But they don't:My operating system: Windows 10
cabal: 3.2.0.0
ghc: 8.10.1
The text was updated successfully, but these errors were encountered: