Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Cabal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
6dfc20fa
Commit
6dfc20fa
authored
Jul 13, 2017
by
Francesco Gazzetta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new-run docs
parent
28dbf7f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
4 deletions
+26
-4
Cabal/doc/nix-local-build.rst
Cabal/doc/nix-local-build.rst
+26
-4
No files found.
Cabal/doc/nix-local-build.rst
View file @
6dfc20fa
...
...
@@ -17,6 +17,12 @@ To open a GHCi shell with this package, use this command:
$
cabal
new
-
repl
To
run
an
executable
defined
in
this
package
,
use
this
command
:
::
$
cabal
new
-
run
<
executable
name
>
[
executable
args
]
Developing
multiple
packages
----------------------------
...
...
@@ -343,6 +349,26 @@ Currently, it is not supported to pass multiple targets to ``new-repl``
(``
new
-
repl
``
will
just
successively
open
a
separate
GHCi
session
for
each
target
.)
cabal
new
-
run
-------------
``
cabal
new
-
run
[
TARGET
[
ARGS
]]``
runs
the
executable
specified
by
the
target
,
which
can
be
a
component
,
a
package
or
can
be
left
blank
,
as
long
as
it
can
uniquely
identify
an
executable
within
the
project
.
See
new
-
build
for
the
target
syntax
.
Except
in
the
case
of
the
empty
target
,
the
strings
after
it
will
be
passed
to
the
executable
as
arguments
.
If
one
of
the
arguments
starts
with
``-``
it
will
be
interpreted
as
a
cabal
flag
,
so
if
you
need
to
pass
flags
to
the
executable
you
have
to
separate
them
with
``--``.
::
$
cabal
new
-
run
target
--
-
a
-
bcd
--
argument
cabal
new
-
freeze
----------------
...
...
@@ -382,10 +408,6 @@ The following commands are not currently supported:
Workaround
:
run
the
benchmark
executable
directly
(
see
`
Where
are
my
build
products
<#
where
-
are
-
my
-
build
-
products
>`
__
?)
``
cabal
new
-
run
``
(:
issue
:`
3638
`)
Workaround
:
run
the
executable
directly
(
see
`
Where
are
my
build
products
<#
where
-
are
-
my
-
build
-
products
>`
__
?)
``
cabal
new
-
exec
``
Workaround
:
if
you
wanted
to
execute
GHCi
,
consider
using
``
cabal
new
-
repl
``
instead
.
Otherwise
,
use
``-
v
``
to
find
the
list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment