@@ -11,19 +11,19 @@ local builds with this command (configuring is not necessary):
1111
1212::
1313
14- $ cabal v2- build
14+ $ cabal build
1515
1616To open a GHCi shell with this package, use this command:
1717
1818::
1919
20- $ cabal v2- repl
20+ $ cabal repl
2121
2222To run an executable defined in this package, use this command:
2323
2424::
2525
26- $ cabal v2- run <executable name> [executable args]
26+ $ cabal run <executable name> [executable args]
2727
2828Developing multiple packages
2929----------------------------
@@ -51,37 +51,37 @@ directory, run the command: (using cabal-install-2.0 or greater.)
5151
5252::
5353
54- $ cabal v2- build all
54+ $ cabal build all
5555
56- To build a specific package, you can either run ``v2- build `` from the
56+ To build a specific package, you can either run ``build `` from the
5757directory of the package in question:
5858
5959::
6060
6161 $ cd cabal-install
62- $ cabal v2- build
62+ $ cabal build
6363
6464or you can pass the name of the package as an argument to
65- ``cabal v2- build `` (this works in any subdirectory of the project):
65+ ``cabal build `` (this works in any subdirectory of the project):
6666
6767::
6868
69- $ cabal v2- build cabal-install
69+ $ cabal build cabal-install
7070
7171You can also specify a specific component of the package to build. For
7272example, to build a test suite named ``package-tests ``, use the command:
7373
7474::
7575
76- $ cabal v2- build package-tests
76+ $ cabal build package-tests
7777
7878Targets can be qualified with package names. So to request
7979``package-tests `` *from * the ``Cabal `` package, use
8080``Cabal-tests:package-tests ``.
8181
8282Unlike sandboxes, there is no need to setup a sandbox or ``add-source ``
8383projects; just check in ``cabal.project `` to your repository and
84- ``v2- build `` will just work.
84+ ``build `` will just work.
8585
8686Cookbook
8787========
@@ -94,14 +94,14 @@ line::
9494
9595 profiling: True
9696
97- Now, ``cabal v2- build `` will automatically build all libraries and
97+ Now, ``cabal build `` will automatically build all libraries and
9898executables with profiling. You can fine-tune the profiling settings
9999for each package using :cfg-field: `profiling-detail `::
100100
101101 package p
102102 profiling-detail: toplevel-functions
103103
104- Alternately, you can call ``cabal v2- build --enable-profiling `` to
104+ Alternately, you can call ``cabal build --enable-profiling `` to
105105temporarily build with profiling.
106106
107107How can I have a reproducible set of versions for my dependencies?
@@ -173,13 +173,13 @@ built version.
173173The global package store is ``~/.cabal/store `` (configurable via
174174global `store-dir ` option); if you need to clear your store for
175175whatever reason (e.g., to reclaim disk space or because the global
176- store is corrupted), deleting this directory is safe (``v2- build ``
176+ store is corrupted), deleting this directory is safe (``build ``
177177will just rebuild everything it needs on its next invocation).
178178
179179This split motivates some of the UI choices for Nix-style local build
180- commands. For example, flags passed to ``cabal v2- build `` are only
180+ commands. For example, flags passed to ``cabal build `` are only
181181applied to *local * packages, so that adding a flag to
182- ``cabal v2- build `` doesn't necessitate a rebuild of *every * transitive
182+ ``cabal build `` doesn't necessitate a rebuild of *every * transitive
183183dependency in the global package store.
184184
185185In cabal-install 2.0 and above, Nix-style local builds also take advantage of a
@@ -194,10 +194,10 @@ are not currently built on a per-component basis.
194194Where are my build products?
195195----------------------------
196196
197- A major deficiency in the current implementation of v2- build is that
197+ A major deficiency in the current implementation of `` cabal build`` is that
198198there is no programmatic way to access the location of build products.
199199The location of the build products is intended to be an internal
200- implementation detail of v2- build, but we also understand that many
200+ implementation detail of `` cabal build`` , but we also understand that many
201201unimplemented features can only be reasonably worked around by
202202accessing build products directly.
203203
@@ -245,7 +245,7 @@ the time it takes to execute a rebuild cycle. While the details of how
245245``cabal-install `` does caching are an implementation detail and may
246246change in the future, knowing what gets cached is helpful for
247247understanding the performance characteristics of invocations to
248- ``v2- build ``. The cached intermediate results are stored in
248+ ``build ``. The cached intermediate results are stored in
249249``dist-newstyle/cache ``; this folder can be safely deleted to clear the
250250cache.
251251
@@ -261,7 +261,7 @@ this folder (the most important two are first):
261261 already available in the store.)
262262``source-hashes `` (binary)
263263 The hashes of all local source files. When all local source files of
264- a local package are unchanged, ``cabal v2- build `` will skip
264+ a local package are unchanged, ``cabal build `` will skip
265265 invoking ``setup build `` entirely (saving us from a possibly
266266 expensive call to ``ghc --make ``). The full list of source files
267267 participating in compilation is determined using
0 commit comments