summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2015-05-19 01:23:47 -0500
committerAustin Seipp <austin@well-typed.com>2015-05-19 01:25:23 -0500
commitb03f074fd51adfb9bc4f5275294712ee62741aed (patch)
tree7fb04ed2a1865bf68b4dac9608c5e69ac2135ef2 /docs
parent578d2bad19b3e03fac4da1e5be4b22b73cef0a44 (diff)
downloadhaskell-b03f074fd51adfb9bc4f5275294712ee62741aed.tar.gz
ghci: Allow :back and :forward to take counts
These behave like the count arguments of the gdb `up` and `down` commands, allowing the user to quickly jump around in history. Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D853
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/7.12.1-notes.xml5
-rw-r--r--docs/users_guide/ghci.xml16
2 files changed, 15 insertions, 6 deletions
diff --git a/docs/users_guide/7.12.1-notes.xml b/docs/users_guide/7.12.1-notes.xml
index 9a87588858..d0eefabbdb 100644
--- a/docs/users_guide/7.12.1-notes.xml
+++ b/docs/users_guide/7.12.1-notes.xml
@@ -96,6 +96,11 @@
<literal>Main</literal> with an explicit module header but
without <literal>main</literal> is now an error (#7765).
</para>
+ <para>
+ The <literal>:back</literal> and <literal>:forward</literal>
+ commands now take an optional count allowing the user to move forward or
+ backward in history several steps at a time.
+ </para>
</listitem>
</itemizedlist>
</sect3>
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index 6e09f3a16e..627aa79cf8 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -2096,12 +2096,14 @@ $ ghci -lm
<varlistentry>
<term>
- <literal>:back</literal>
+ <literal>:back <optional><replaceable>n</replaceable></optional></literal>
<indexterm><primary><literal>:back</literal></primary></indexterm>
</term>
<listitem>
- <para>Travel back one step in the history. See <xref
- linkend="tracing" />. See also:
+ <para>Travel back <replaceable>n</replaceable> steps in the
+ history. <replaceable>n</replaceable> is one if omitted.
+ See <xref linkend="tracing" /> for more about GHCi's debugging
+ facilities. See also:
<literal>:trace</literal>, <literal>:history</literal>,
<literal>:forward</literal>.</para>
</listitem>
@@ -2474,12 +2476,14 @@ Prelude> :. cmds.ghci
<varlistentry>
<term>
- <literal>:forward</literal>
+ <literal>:forward <optional><replaceable>n</replaceable></optional></literal>
<indexterm><primary><literal>:forward</literal></primary></indexterm>
</term>
<listitem>
- <para>Move forward in the history. See <xref
- linkend="tracing" />. See also:
+ <para>Move forward <replaceable>n</replaceable> steps in the
+ history. <replaceable>n</replaceable> is one if omitted.
+ See <xref linkend="tracing" /> for more about GHCi's debugging
+ facilities. See also:
<literal>:trace</literal>, <literal>:history</literal>,
<literal>:back</literal>.</para>
</listitem>