File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,22 @@ stack run [-- ARGUMENT(S) (e.g. stack run -- file.txt)]
99~~~
1010
1111` stack run ` builds a project executable and runs it. If the command has a first
12- argument and it is recognised as an executable target then that is built.
13- Otherwise, the project's first executable is built. If the project has no
14- executables Stack reports no executables found as an error.
12+ argument and it is recognised as the name of an executable component of a
13+ project package then that is built. Otherwise, the project's first executable is
14+ built. If the project has no executables Stack reports no executables found as
15+ an error.
1516
1617!!! note
1718
18- To identify a project's first executable, Stack lists the executable
19- components, in order, for each package, listed in order. For example:
19+ To identify a project's first executable, and search for the name of an
20+ executable component, Stack lists the executable components, in order, for
21+ each package, listed in order. For example:
2022
2123 `packageA:a-exe` < `packageA:b-exe` < `packageB:a-exe` < `packageB:b-exe`
2224
2325Everything after ` -- ` on the command line is interpreted as a command line
2426argument to be passed to what is run, other than a first argument recognised as
25- an executable target .
27+ the name of an executable component of a project package .
2628
2729By default:
2830
You can’t perform that action at this time.
0 commit comments