-
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
cabal install of library behavior does not match documentation #6913
Comments
I'd argue that it's the behaviour that is wrong, rather than the documentation, ref #6481 |
relatedly, the cabal manual still has the wrong info at https://cabal.readthedocs.io/en/3.6/installing-packages.html#building-and-installing-packages even though nearly everywhere else is cleaned up. |
Well spotted. Volunteers welcome. |
The problematic wording from OP ("If TARGET is a library") has been fixed in b0e88b1 (by adding "and The problematic docs mentioned by @gbaz have been purged in aa3d66d. Should this be closed? I think that |
I think you are right. If nobody objects, let's close in favour of a more up to date or more detailed ticket (probably a new one, but who knows what we already have). |
Thank you; closing. |
Describe the bug
cabal install, run in a package that is a library, complains that it "does
not contain any executables". I expected the old cabal behavior of installing it to the global library directory.
cabal install --lib works. However, cabal install --help says, at the top:
"If TARGET is a library, it will be added to the global environment."
it took me some hunting to realize that was wrong and that I now need --lib.
To Reproduce
System information
The text was updated successfully, but these errors were encountered: