Skip to content

Commit 79d6712

Browse files
committed
Updating the docs for #7402
1 parent 3e9a42f commit 79d6712

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/cabal-commands.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ to happen if a flag actually applied to every transitive dependency). To
4242
apply options to an external package, use a ``package`` stanza in a
4343
``cabal.project`` file.
4444

45+
There are two ways of modifying the ``cabal.project.local`` file through
46+
``cabal v2-configure``, either by appending new configurations to it, or
47+
by simply overwriting it all. Overwriting is the default behaviour, as
48+
such, there's a flag ``--enable-append`` to append the new configurations
49+
instead. Since overwriting is rather destructive in nature, a backup system
50+
is in place, which moves the old configuration to a ``cabal.project.local~``
51+
file, this feature can also be disabled by using the ``--enable-overwrite``
52+
flag.
53+
4554
cabal v2-update
4655
----------------
4756

0 commit comments

Comments
 (0)