X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fghci.xml;h=b27781c332b3310416d5022c6c6fa7c1628a4c26;hb=d7df1559b3f44603e78062e9eed5c13a453aa7f4;hp=0f78ebe97bb2221bd8b7e1f04e785672d057ecea;hpb=8c9667e1a1036359f2c656c6cc031d50ae746554;p=ghc-hetmet.git diff --git a/docs/users_guide/ghci.xml b/docs/users_guide/ghci.xml index 0f78ebe..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: @@ -2066,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.