Unverified Commit 0369f8b8 authored by Francesco Gazzetta's avatar Francesco Gazzetta Committed by GitHub
Browse files

Merge pull request #7233 from danidiaz/doc_install_lib_heading

Moved info for cabal install --lib to sub-heading
parents d60a0604 c6f3e4b3
......@@ -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