Skip to content

Commit 61ec582

Browse files
committed
Rationalise examples for build targets
1 parent 2361fdc commit 61ec582

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

doc/build_command.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,8 @@ Examples:
160160
* `stack build my-package:exe:my-executable`
161161
* `stack build my-package:test:my-test-suite`
162162
* `stack build my-package:bench:my-benchmark`
163-
* `stack build my-package:my-executable`
164163
* `stack build my-package:my-test-suite`
165-
* `stack build my-package:my-benchmark`
166-
* `stack build :my-executable`
167164
* `stack build :my-test-suite`
168-
* `stack build :my-benchmark`
169165

170166
You can select individual components from inside a project package to be built.
171167
This can be done for more fine-grained control over which test suites to run, or
@@ -179,13 +175,11 @@ There are multiple ways to refer to a specific component:
179175
associated component name, `<comp-name>`.
180176

181177
* `<package-name>:<comp-name>` allows you to leave out the component type, as
182-
that will often be unique for a given component name. For example,
183-
`stack build mypackage:my-test-suite`.
178+
that will often be unique for a given component name.
184179

185180
* `:<comp-name>` is a useful shortcut, saying "find the component`<comp-name>`
186181
in all of the project packages". This will result in an error if more than
187-
one package has a component with the specified name. For example,
188-
`stack build :my-test-suite`.
182+
one package has a component with the specified name.
189183

190184
For further information about available targets, see the
191185
[`stack ide targets` command](ide_command.md).

0 commit comments

Comments
 (0)