X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghci.xml;h=b27781c332b3310416d5022c6c6fa7c1628a4c26;hb=4d2457071327bc82898b2c974d0d2e03747537c9;hp=d8d0a897414c0dac106faf08b0c23fad098caea6;hpb=01d016a48232ca5932efd7fd19fa4ccdb9623576;p=ghc-hetmet.git
diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml
index d8d0a89..b27781c 100644
--- a/docs/users_guide/ghci.xml
+++ b/docs/users_guide/ghci.xml
@@ -577,7 +577,9 @@ hello
Prelude IO>
- (Note: :module can be shortened to
+ (Note: you can use import M as an
+ alternative to :module +M, and
+ :module can also be shortened to
:m). The full syntax of the
:module command is:
@@ -1373,7 +1375,9 @@ a :: a
have no context information attached to them. Finding which
particular call to head in your program resulted in
the error can be a painstaking process, usually involving
- Debug.Trace.trace.
+ Debug.Trace.trace, or compiling with
+ profiling and using +RTS -xc (see ).
The GHCi debugger offers a way to hopefully shed some light on
these errors quickly and without modifying or recompiling the source
@@ -2064,9 +2068,15 @@ Prelude> :main foo bar
:module +|- *mod1 ... *modn
:module
+
+ import mod
+
Sets or modifies the current context for statements
- typed at the prompt. See for
+ typed at the prompt. The form import
+ mod is equivalent to
+ :module +mod.
+ See for
more details.