@@ -127,7 +127,7 @@ retained, with the following flags:
127
127
128
128
### The ` stack build --dependencies-only ` flag
129
129
130
- Set the flag to skip building the targets. The flag ` --only-dependencies ` has
130
+ Pass the flag to skip building the targets. The flag ` --only-dependencies ` has
131
131
the same effect.
132
132
133
133
### The ` stack build --[no-]dry-run ` flag
@@ -191,7 +191,7 @@ these, if a build fails. By default, they are not kept.
191
191
192
192
### The ` stack build --only-dependencies ` flag
193
193
194
- Set the flag to skip building the targets. The flag ` --dependencies-only ` has
194
+ Pass the flag to skip building the targets. The flag ` --dependencies-only ` has
195
195
the same effect.
196
196
197
197
### The ` stack build --[no-]reconfigure ` flag
@@ -215,7 +215,7 @@ This option can be specified multiple times to skip multiple components.
215
215
216
216
### The ` stack build --only-snapshot ` flag
217
217
218
- Set the flag to build only snapshot dependencies, which are cached and shared
218
+ Pass the flag to build only snapshot dependencies, which are cached and shared
219
219
with other projects.
220
220
221
221
## Other flags and options
@@ -225,14 +225,19 @@ all of them, please use `stack build --help`. Some particularly convenient ones
225
225
worth mentioning here since they compose well with the rest of the build system
226
226
as described:
227
227
228
+ ### The ` stack build --coverage ` flag
229
+
230
+ Pass the flag to generate a code coverage report. For further information, see
231
+ the [ code coverage] ( coverage.md ) documentation.
232
+
228
233
### The ` stack build --exec ` option
229
234
230
235
` stack build --exec "<command> [<arguments>]" ` will run a command after a
231
236
successful build.
232
237
233
238
### The ` stack build --file-watch ` flag
234
239
235
- Set the flag to rebuild your project every time a file changes. By default it
240
+ Pass the flag to rebuild your project every time a file changes. By default it
236
241
will take into account all files belonging to the targets you specify. See also
237
242
the ` --watch-all ` flag.
238
243
@@ -261,7 +266,7 @@ Unset the flag to disable this behaviour. When disabled:
261
266
262
267
### The ` stack build --watch-all ` flag
263
268
264
- Set the flag to rebuild your project every time any local file changes (from
269
+ Pass the flag to rebuild your project every time any local file changes (from
265
270
project packages or from local dependencies). See also the ` --file-watch ` flag.
266
271
267
272
## Composition
0 commit comments