Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
b076d3ca
Commit
b076d3ca
authored
Jun 21, 2018
by
Merijn Verstraaten
Browse files
Update readthedocs.io documentation for new-repl
[ci skip]
parent
ccdec94b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/doc/nix-local-build.rst
View file @
b076d3ca
...
...
@@ -362,8 +362,15 @@ cabal new-repl
--------------
``
cabal
new
-
repl
TARGET
``
loads
all
of
the
modules
of
the
target
into
GHCi
as
interpreted
bytecode
.
It
takes
the
same
flags
as
``
cabal
new
-
build
``.
GHCi
as
interpreted
bytecode
.
In
addition
to
the
``
cabal
new
-
build
``
's flags,
it takes an additional ``--repl-options`` flags.
To avoid ``ghci`` specific flags from triggering unneeded global rebuilds these
flags are now stripped from ``ghc-options``. As a result ``--ghc-options`` will
no longer (reliably) work to pass flags to ``ghci`` (or other repls). Instead,
you should use the new ``--repl-options`` flag to specify these options to the
invoked repl. (This flags also works on ``cabal repl`` and ``Setup repl`` on
sufficiently new versions)
Currently, it is not supported to pass multiple targets to ``new-repl``
(``new-repl`` will just successively open a separate GHCi session for
...
...
Write
Preview
Supports
Markdown
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