Skip to content

Commit 3eb4613

Browse files
committed
Fix commercialhaskell#5232 Clarify documentation for stack run
1 parent a0361dd commit 3eb4613

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/run_command.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ argument and it is recognised as an executable target then that is built.
1313
Otherwise, the project's first executable is built. If the project has no
1414
executables Stack reports no executables found as an error.
1515

16+
!!! note
17+
18+
To identify a project's first executable, Stack lists the executable
19+
components, in order, for each package, listed in order. For example:
20+
21+
`packageA:a-exe` < `packageA:b-exe` < `packageB:a-exe` < `packageB:b-exe`
22+
1623
Everything after `--` on the command line is interpreted as a command line
1724
argument to be passed to what is run, other than a first argument recognised as
1825
an executable target.

0 commit comments

Comments
 (0)