summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2007-05-21 08:51:34 +0000
committerSimon Marlow <simonmar@microsoft.com>2007-05-21 08:51:34 +0000
commit57924f469e4a9e55d087384e9f3f918f0eaf02cb (patch)
treedbb16f50ed8cc769153ce4292fb2350e37b9dddb /docs
parent720bfb294c6380b7aa954d94f9ff909031cebf6f (diff)
downloadhaskell-57924f469e4a9e55d087384e9f3f918f0eaf02cb.tar.gz
doc: 'import M' is the same as ':module +M'
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/ghci.xml12
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index 0f78ebe97b..b27781c332 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -577,7 +577,9 @@ hello
Prelude IO>
</screen>
- <para>(Note: <literal>:module</literal> can be shortened to
+ <para>(Note: you can use <literal>import M</literal> as an
+ alternative to <literal>:module +M</literal>, and
+ <literal>:module</literal> can also be shortened to
<literal>:m</literal>). The full syntax of the
<literal>:module</literal> command is:</para>
@@ -2066,9 +2068,15 @@ Prelude> :main foo bar
<literal>:module <optional>+|-</optional> <optional>*</optional><replaceable>mod<subscript>1</subscript></replaceable> ... <optional>*</optional><replaceable>mod<subscript>n</subscript></replaceable></literal>
<indexterm><primary><literal>:module</literal></primary></indexterm>
</term>
+ <term>
+ <literal>import <replaceable>mod</replaceable></literal>
+ </term>
<listitem>
<para>Sets or modifies the current context for statements
- typed at the prompt. See <xref linkend="ghci-scope"/> for
+ typed at the prompt. The form <literal>import
+ <replaceable>mod</replaceable></literal> is equivalent to
+ <literal>:module +<replaceable>mod</replaceable></literal>.
+ See <xref linkend="ghci-scope"/> for
more details.</para>
</listitem>
</varlistentry>