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
a74c7fa7
Commit
a74c7fa7
authored
1 year ago
by
BinderDavid
Committed by
Mikolaj
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Deduplicate documentation of "cabal repl" command
parent
ed8acd94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/cabal-package.rst
+0
-26
0 additions, 26 deletions
doc/cabal-package.rst
with
0 additions
and
26 deletions
doc/cabal-package.rst
+
0
−
26
View file @
a74c7fa7
...
...
@@ -1021,32 +1021,6 @@ For more information about the rationale and some examples, see
TODO inline the blog post
Opening an interpreter session
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
While developing a package, it is often useful to make its code
available inside an interpreter session. This can be done with the
``repl`` command:
.. code-block:: console
$ cabal repl
The name comes from the acronym
`REPL <http://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop>`__,
which stands for "read-eval-print-loop". By default ``cabal repl`` loads
the first component in a package. If the package contains several named
components, the name can be given as an argument to ``repl``. The name
can be also optionally prefixed with the component's type for
disambiguation purposes. Example:
.. code-block:: console
$ cabal repl foo
$ cabal repl exe:foo
$ cabal repl test:bar
$ cabal repl bench:baz
Freezing dependency versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
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