Commit 57924f46 authored by Simon Marlow's avatar Simon Marlow
Browse files

doc: 'import M' is the same as ':module +M'

parent 720bfb29
......@@ -577,7 +577,9 @@ hello
Prelude IO>
<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>
<literal>import <replaceable>mod</replaceable></literal>
<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>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment