Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cabal
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
Cabal
Commits
3d3986fa
Commit
3d3986fa
authored
3 years ago
by
Victor Nawothnig
Committed by
mergify-bot
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjust documentation for run command
parent
d1b0391a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cabal-install/src/Distribution/Client/CmdRun.hs
+3
-2
3 additions, 2 deletions
cabal-install/src/Distribution/Client/CmdRun.hs
doc/cabal-commands.rst
+13
-0
13 additions, 0 deletions
doc/cabal-commands.rst
with
16 additions
and
2 deletions
cabal-install/src/Distribution/Client/CmdRun.hs
+
3
−
2
View file @
3d3986fa
...
...
@@ -121,8 +121,9 @@ runCommand = CommandUI
++
"Any executable-like component in any package in the project can be "
++
"specified. A package can be specified if contains just one "
++
"executable-like. The default is to use the package in the current "
++
"directory if it contains just one executable-like.
\n\n
"
++
"executable-like, preferring a single executable. The default is to "
++
"use the package in the current directory if it contains just one "
++
"executable-like.
\n\n
"
++
"Extra arguments can be passed to the program, but use '--' to "
++
"separate arguments for the program from arguments for "
++
pname
...
...
This diff is collapsed.
Click to expand it.
doc/cabal-commands.rst
+
13
−
0
View file @
3d3986fa
...
...
@@ -194,6 +194,19 @@ Tests and benchmarks are also treated as executables.
See `the v2-build section <#cabal-v2-build>`__ for the target syntax.
When ``TARGET`` is one of the following:
- A component target: execute the specified executable, benchmark or test suite
- A package target:
1. If the package has exactly one executable component, it will be selected.
2. If the package has multiple executable components, an error is raised.
3. If the package has exactly one test or benchmark component, it will be selected.
4. Otherwise an issue is raised
- Empty target: Same as package target, implicitly using the package from the current
working directory.
Except in the case of the empty target, the strings after it will be
passed to the executable as arguments.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment