-
Notifications
You must be signed in to change notification settings - Fork 697
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 glossary and disambiguate cabal vs Cabal #10631
Draft
philderbeast
wants to merge
3
commits into
haskell:master
Choose a base branch
from
cabalism:doc/add-glossary
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+87
−64
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ directories when there is none in the current directory. | |
Conditionals and imports | ||
------------------------ | ||
|
||
As of ``cabal-install`` version 3.8, cabal supports conditional logic and | ||
As of :term:`cabal-install:exe:cabal` version 3.8, cabal supports conditional logic and | ||
imports in ``cabal.project`` files. | ||
|
||
.. warning:: | ||
|
@@ -92,7 +92,7 @@ You *must* provide a non-empty list of local packages in your project, filling | |
out either a ``packages`` field or an ``optional-packages`` field or both to | ||
satisfy this requirement. | ||
|
||
When ``cabal.project`` doesn't exist, ``cabal-install`` fabricates an ephemeral | ||
When ``cabal.project`` doesn't exist, :term:`cabal-install:exe:cabal` fabricates an ephemeral | ||
project for its own use with this simple content, a glob that will find any (but | ||
expects to find one) package in the current directory: | ||
|
||
|
@@ -315,7 +315,7 @@ package, and thus apply globally: | |
|
||
:default: 1 | ||
|
||
Control the verbosity of ``cabal`` commands, valid values are from 0 | ||
Control the verbosity of :term:`cabal` commands, valid values are from 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. …this line being an example |
||
to 3. | ||
|
||
The command line variant of this field is ``--verbose=2``; a short | ||
|
@@ -346,7 +346,7 @@ package, and thus apply globally: | |
This option instructs cabal to control parallelism by creating a new system semaphore, | ||
whose number of tokens is specified by ``--jobs`` (or ``-j``). | ||
This semaphore is passed to GHC, which allows it to use any leftover parallelism | ||
that ``cabal-install`` is not using. | ||
that :term:`cabal-install:exe:cabal` is not using. | ||
|
||
Requires ``ghc >= 9.8``. | ||
|
||
|
@@ -420,9 +420,9 @@ package, and thus apply globally: | |
:since: 3.7 | ||
|
||
By modifying ``package-dbs`` you can modify the default package environment | ||
which ``cabal`` will see. The package databases you add using ``package-dbs`` | ||
which :term:`cabal` will see. The package databases you add using ``package-dbs`` | ||
will not be written into and only used as immutable package stores to initialise | ||
the environment with additional packages that ``cabal`` can choose to use. | ||
the environment with additional packages that :term:`cabal` can choose to use. | ||
|
||
There are three package databases involved with most builds: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
External Commands | ||
================= | ||
|
||
``cabal-install`` provides a system for external commands, akin to the ones used by tools like ``git`` or ``cargo``. | ||
:term:`cabal-install:exe:cabal` provides a system for external commands, akin to the ones used by tools like ``git`` or ``cargo``. | ||
|
||
If you execute ``cabal <cmd>``, ``cabal-install`` will search the path for an executable named ``cabal-<cmd>`` and execute it. The name of the command is passed as the first argument and | ||
If you execute ``cabal <cmd>``, :term:`cabal-install:exe:cabal` will search the path for an executable named ``cabal-<cmd>`` and execute it. The name of the command is passed as the first argument and | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mmm, and here's a third one for the same thing. Consistency would be nice. |
||
the remaining arguments are passed afterwards. An error will be thrown in case the custom command is not found. The exit code of cabal when calling an external command is the same as the exit code | ||
of the command. | ||
|
||
The ``$CABAL`` environment variable is set to the path of the ``cabal-install`` executable | ||
The ``$CABAL`` environment variable is set to the path of the :term:`cabal-install:exe:cabal` executable | ||
which invoked the subcommand. | ||
|
||
It is strongly recommended that you implement your custom commands by calling the | ||
CLI via the ``$CABAL`` variable rather than linking against the ``Cabal`` library. | ||
There is no guarantee that the subcommand will link against the same version of the | ||
``Cabal`` library as ``cabal-install`` so it would lead to unexpected results and | ||
``Cabal`` library as :term:`cabal-install:exe:cabal` so it would lead to unexpected results and | ||
incompatibilities. | ||
|
||
``cabal-install`` can also display the help message of the external command. | ||
:term:`cabal-install:exe:cabal` can also display the help message of the external command. | ||
When ``cabal help <cmd>`` is invoked, then ``cabal-<cmd> <cmd> --help`` will be called so | ||
your external command can display a help message. | ||
|
||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other places,
cabal-install
describes the package andcabal
the command.