From 8f3023cf4cac015d686672cbc91f3426357ec138 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 2 Apr 2002 10:18:07 +0000 Subject: [PATCH] [project @ 2002-04-02 10:18:07 by simonmar] - Reverse the meaning of the *-prefix in the :module and :browse commands: '*Foo' now means the full contents of Foo, whereas just 'Foo' means Foo's exports only. This seems more intuitive to me, but the downside is that ':m Foo' doesn't do the same thing in GHC as Hugs (you have to say ':m *Foo' to get Hugs's behaviour). - Update the help text --- ghc/compiler/ghci/InteractiveUI.hs | 63 ++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index 5205d71..99f98dc 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,6 +1,6 @@ {-# OPTIONS -#include "Linker.h" -#include "SchedAPI.h" #-} ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.116 2002/02/28 10:15:47 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.117 2002/04/02 10:18:07 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -108,35 +108,36 @@ keepGoing a str = a str >> return False shortHelpText = "use :? for help.\n" +-- NOTE: spaces at the end of each line to workaround CPP/string gap bug. helpText = "\ \ Commands available from the prompt:\n\ -\\ -\ evaluate/run \n\ -\ :add ... add module(s) to the current target set\n\ -\ :browse [*] display the names defined by \n\ -\ :cd change directory to \n\ -\ :def define a command :\n\ -\ :help, :? display this list of commands\n\ -\ :info [ ...] display information about the given names\n\ -\ :load ... load module(s) and their dependents\n\ -\ :module set the context for expression evaluation to \n\ -\ :reload reload the current module set\n\ \\n\ -\ :set