Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
efb9e829
Commit
efb9e829
authored
Sep 20, 2013
by
Ben Gamari
Committed by
Krzysztof Gogolewski
Sep 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document remaining GHCi commands in users_guide (#7501)
Also a small formatting change in GHCi :help
parent
1320fd2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
8 deletions
+76
-8
docs/users_guide/ghci.xml
docs/users_guide/ghci.xml
+75
-7
ghc/InteractiveUI.hs
ghc/InteractiveUI.hs
+1
-1
No files found.
docs/users_guide/ghci.xml
View file @
efb9e829
...
...
@@ -1528,8 +1528,8 @@ _result :: IO ()
<replaceable>
expr
</replaceable></literal>
begins the evaluation of
<replaceable>
expr
</replaceable>
in single-stepping mode. If
<replaceable>
expr
</replaceable>
is omitted, then it single-steps from
the current breakpoint.
<literal>
:step
over
</literal>
works
similarly.
</para>
the current breakpoint.
<literal>
:step
local
</literal>
and
<literal>
:stepmodule
</literal>
work
similarly.
</para>
<para>
The
<literal>
:list
</literal>
command is particularly useful when
single-stepping, to see where you currently are:
</para>
...
...
@@ -2507,6 +2507,18 @@ Prelude> :. cmds.ghci
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:issafe
</literal><optional><replaceable>
module
</replaceable></optional>
<indexterm><primary><literal>
:issafe
</literal></primary></indexterm>
</term>
<listitem>
<para>
Displays Safe Haskell information about the given
module (or the current module if omitted). This includes the trust
type of the module and its containing package.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:kind
</literal><optional><literal>
!
</literal></optional>
...
...
@@ -2538,6 +2550,34 @@ T Int :: * -> *
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:list
</literal>
<replaceable>
identifier
</replaceable>
<indexterm><primary><literal>
:list
</literal></primary></indexterm>
</term>
<listitem>
<para>
Lists the source code around the definition of
<replaceable>
identifier
</replaceable>
or the current
breakpoint is not given. This requires the identifier be
defined in an interpreted module. If your output device
supports it, then GHCi will highlight the active
subexpression in bold.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:list
</literal>
<optional><replaceable>
module
</replaceable></optional>
<replaceable>
line
</replaceable>
<indexterm><primary><literal>
:list
</literal></primary></indexterm>
</term>
<listitem>
<para>
Lists the source code around the given line number of
<replaceable>
module
</replaceable>
. This requires that the module be
interpreted. If your output device supports it, then GHCi will
highlight the active subexpression in bold.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:load
</literal>
<optional><literal>
*
</literal></optional><replaceable>
module
</replaceable>
...
...
...
@@ -2984,19 +3024,47 @@ bar
<varlistentry>
<term>
<literal>
:step
[
<replaceable>
expr
</replaceable>
]
</liter
al>
<literal>
:step
</literal>
<optional><replaceable>
expr
</replaceable></option
al>
<indexterm><primary><literal>
:step
</literal></primary></indexterm>
</term>
<listitem>
<para>
Single-step from the last breakpoint. With an expression
argument, begins evaluation of the expression with a
single-step.
</para>
<para>
Enable all breakpoints and begin evaluating an
expression in single-stepping mode. In this
mode evaluation will be stopped after every reduction,
allowing local variables to be inspected.
If
<replaceable>
expr
</replaceable>
is not given, evaluation will
resume at the last breakpoint.
See
<xref
linkend=
"single-stepping"
/>
.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:steplocal
</literal>
<indexterm><primary><literal>
:steplocal
</literal></primary></indexterm>
</term>
<listitem>
<para>
Enable only breakpoints in the current top-level
binding and resume evaluation at the last breakpoint.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:stepmodule
</literal>
<indexterm><primary><literal>
:stepmodule
</literal></primary></indexterm>
</term>
<listitem>
<para>
Enable only breakpoints in the current module and
resume evaluation at the last breakpoint.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>
:trace
[
<replaceable>
expr
</replaceable>
]
</literal>
<literal>
:trace
<optional><replaceable>
expr
</replaceable></optional>
</literal>
<indexterm><primary><literal>
:trace
</literal></primary></indexterm>
</term>
<listitem>
...
...
ghc/InteractiveUI.hs
View file @
efb9e829
...
...
@@ -272,7 +272,7 @@ defFullHelpText =
" :forward go forward in the history (after :back)
\n
"
++
" :history [<n>] after :trace, show the execution history
\n
"
++
" :list show the source code around current breakpoint
\n
"
++
" :list
identifier
show the source code for <identifier>
\n
"
++
" :list
<identifier>
show the source code for <identifier>
\n
"
++
" :list [<module>] <line> show the source code around line number <line>
\n
"
++
" :print [<name> ...] prints a value without forcing its computation
\n
"
++
" :sprint [<name> ...] simplifed version of :print
\n
"
++
...
...
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