From: simonmar Date: Thu, 28 Jun 2001 11:33:24 +0000 (+0000) Subject: [project @ 2001-06-28 11:33:24 by simonmar] X-Git-Tag: Approximately_9120_patches~1673 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=dc5161ccb34118b49b902766d9f9425285160f96;p=ghc-hetmet.git [project @ 2001-06-28 11:33:24 by simonmar] document :add and multiple arguments to :load --- diff --git a/ghc/docs/users_guide/ghci.sgml b/ghc/docs/users_guide/ghci.sgml index 5115eff..1e3bee5 100644 --- a/ghc/docs/users_guide/ghci.sgml +++ b/ghc/docs/users_guide/ghci.sgml @@ -640,6 +640,17 @@ $ ghci -lm + :add + module ... + :add + + Add module(s) to the + current target set, and perform a + reload. + + + + :cd dir :cd @@ -716,18 +727,19 @@ Prelude> :def make (\_ -> return ":! ghc --make Main") - :load module + :load + module ... :load - Recursively loads module, - and all the modules it depends on. Here, - module must be a module name or - filename, but may not be the name of a module in a - package. + Recursively loads the specified + modules, and all the modules they + depend on. Here, each module + must be a module name or filename, but may not be the name + of a module in a package. All previously loaded modules, except package modules, - are forgotten. The module module - is known as the target. + are forgotten. The new set of modules is known as the + target set. After a :load command, the current context is set to: @@ -775,11 +787,11 @@ Prelude> :def make (\_ -> return ":! ghc --make Main") :reload :reload - Attempts to reload the current target (see - :load) if it, or any module it depends - on, has changed. Note that this may entail loading new - modules, or even dropping modules which are no longer - indirectly required by the target. + Attempts to reload the current target set (see + :load) if any of the modules in the set, + or any dependent module, has changed. Note that this may + entail loading new modules, or dropping modules which are no + longer indirectly required by the target.