Commit c6f3e4b3 authored by danidiaz's avatar danidiaz Committed by Daniel Díaz
Browse files

Moved info for cabal install --lib to sub-heading

The text for the --lib flag to the cabal install subcommand has been
moved to its own subheading.

Also the text has been slightly reworded.
parent d60a0604
......@@ -308,6 +308,9 @@ by using ``--install-method`` flag:
Note that copied executables are not self-contained, since they might use
data-files from the store.
Adding libraries to GHC package environments
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It is also possible to "install" libraries using the ``--lib`` flag. For
example, this command will build the latest Cabal library and install it:
......@@ -315,10 +318,10 @@ example, this command will build the latest Cabal library and install it:
$ cabal v2-install --lib Cabal
This works by managing GHC environments. By default, it is writing to the
global environment in ``~/.ghc/$ARCH-$OS-$GHCVER/environments/default``.
``v2-install`` provides the ``--package-env`` flag to control which of
these environments is modified.
This works by managing GHC package environment files. By default, it is writing
to the global environment in ``~/.ghc/$ARCH-$OS-$GHCVER/environments/default``.
``v2-install`` provides the ``--package-env`` flag to control which of these
environments is modified.
This command will modify the environment file in the current directory:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment