From b854692dda9ac8f290aa761fcc799b3e4915412f Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 22 Oct 2001 16:16:27 +0000 Subject: [PATCH] [project @ 2001-10-22 16:16:27 by simonmar] new commands: :set args ... :set prog to set the results of System.getArgs and System.getProgName as seen by the program. --- ghc/compiler/ghci/InteractiveUI.hs | 43 ++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index db1e29d..d0cfa22 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.96 2001/10/18 15:26:57 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.97 2001/10/22 16:16:27 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -51,6 +51,7 @@ import Readline #endif import Concurrent import IOExts +import SystemExts import Numeric import List @@ -87,7 +88,7 @@ builtin_commands = [ ("load", keepGoing loadModule), ("module", keepGoing setContext), ("reload", keepGoing reloadModule), - ("set", keepGoing setOptions), + ("set", keepGoing setCmd), ("type", keepGoing typeOfExpr), ("unset", keepGoing unsetOptions), ("undef", keepGoing undefineMacro), @@ -112,6 +113,8 @@ helpText = "\ \ :module set the context for expression evaluation to \n\ \ :reload reload the current module set\n\ \ :set