-
Notifications
You must be signed in to change notification settings - Fork 711
Why are cabal-install commands in the docs prefixed with v2- ? #7797
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
Comments
Another thing -> is term I am looking at getting started and at introduction (https://cabal.readthedocs.io/en/latest/intro.html), and while difference between cabal CLI, cabal library and cabal spec is explained, no where is mentioned that cabal CLI is also called cabal-install. From what I am getting, cabal-install is an old name that is not used any more? Should we replace "cabal-install` with just "cabal" or "cabal CLI" if more context is needed? |
Hi @Martinsos. Thank you for you questions. I hope many of the will be answered in the upcoming https://github.com/haskell/cabal-userguide (CC @JonathanLorimer). However, let me try to summarize: v1- will be there until cabal has satisfactory workflows that replace the v1- commands. v2- is equal to no prefix. I think it would work to explain once that v2- (as seen on the net) is no prefix and remove all v2- prefixes from the the whole repo from each file ever.
|
I didn't know about the cabal-userguide, looking forward to it! Explaining Would you like me to take a stab at this at some point, maybe create a PR to get this going? Regarding I would suggest picking one of the approaches:
|
@Martinsos, yes, please getting the v2- mess sorted out would be very useful. Regarding |
option 1 has to be done anyway since other sources will mention it, and one has to type it to upgrade cabal but option 2 can be done too |
@Martinsos, the current and latest cabal user guides are online at https://cabal.readthedocs.io/ and https://cabal.readthedocs.io/en/latest/. The former is for cabal-3.6 at the time I'm writing this. |
There is also https://github.com/haskell/cabal-userguide, but it seems it stalled recently. |
related pr: #6703 |
Fixed in #8020. |
In the docs, at https://cabal.readthedocs.io/en/latest/cabal-commands.html# , all the commands are prefixed with v2- .
However, in the getting started guide at https://cabal.readthedocs.io/en/latest/getting-started.html, none of them are prefixed with v2- .
I understand that there are commands prefixed with nothing (
install
), commands prefixed with v1- (v1-install
), and then there are commands prefixed with v2- (v2-install
), and that this was due to change of behaviour between cabal 1 and 2, but that these days v1 should not be used while v2 is equal as having no prefix.If that is so, I guess all mentions of v2 should be removed from the docs, at least from prominent locations and instead there could be a piece of docs that explains no prefix vs v1 vs v2?
The text was updated successfully, but these errors were encountered: