-
Notifications
You must be signed in to change notification settings - Fork 698
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
document "cabal install --lib" #6392
Comments
Yes, I don't understand why I have to specify |
@yaxu, is https://hackage.haskell.org/package/cpphs an executable or a library? |
@phadej I think you might know the answer. Can you be a bit more explicit with your point please? |
@yaxu, Also, Note, that we have to also invoke solver before we can know what we can install, as if you use say older GHC, or you miss All that can be changed, but please think about non-trivial scenarios too. |
@phadej
|
@yaxu, no it doesn't install the library. It builds it, and adds it to the store, but doesn't add it to the environment file. You cannot fire |
@phadej I see. I did check that I can load the library in ghci, but it's very possible I already have it installed via v1-install, which installs both. |
That's why I opened #6481. |
Thanks @phadej, that's appreciated. |
Initial bug report was about lacking documentation, not the design of v2-install. Documentation seems to have catched up with: https://cabal.readthedocs.io/en/3.6/cabal-commands.html#adding-libraries-to-ghc-package-environments Should this be closed? |
Well spotted. Closing. Thank you everybody for comments. |
Hi.
The "--lib" flag to "cabal install" is not mentioned at https://www.haskell.org/cabal/users-guide/installing-packages.html#building-and-installing-a-user-package , and is missing from https://www.haskell.org/cabal/users-guide/genindex.html .
This creates confusion: 1. what does the flag do? 2. are we even looking in the right place for documentation? - e.g., sandboxing, documented there, is no longer a thing since we have environment files now?
(e.g., tidalcycles/Tidal#572 (comment) )
The text was updated successfully, but these errors were encountered: