X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=7987405eac1c2ffb15958eee7370da18598e54bc;hb=4fb9c8aa14742cf98c1c0f2be1f98841fad145b8;hp=3db40987e5bd4797504feba97f8fc314818e9025;hpb=08b04909f7aed39ff934755c38d66d3b4c5c016a;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index 3db4098..7987405 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.42 2001/02/12 11:38:49 sewardj Exp $ +-- $Id: InteractiveUI.hs,v 1.55 2001/03/15 11:23:19 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -7,7 +7,8 @@ -- ----------------------------------------------------------------------------- -module InteractiveUI (interactiveUI) where +{-# OPTIONS -#include "Linker.h" #-} +module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where #include "HsVersions.h" @@ -17,13 +18,10 @@ import ByteCodeLink import DriverFlags import DriverState import DriverUtil -import Type import Linker -import Finder -import Module -import Outputable import Util -import PprType {- instance Outputable Type; do not delete -} +import Name ( Name ) +import Outputable import Panic ( GhcException(..) ) import Config @@ -41,9 +39,11 @@ import CPUTime import Directory import IO import Char -import Monad ( when ) +import Monad ( when ) import PrelGHC ( unsafeCoerce# ) +import Foreign ( nullPtr ) +import CString ( peekCString ) ----------------------------------------------------------------------------- @@ -81,38 +81,38 @@ shortHelpText = "use :? for help.\n" helpText = "\ \ Commands available from the prompt:\n\ \\ -\ evaluate \n\ -\ :add add a module to the current set\n\ +\ evaluate/run \n\ \ :cd change directory to \n\ +\ :def define a macro :\n\ \ :help, :? display this list of commands\n\ \ :load load a module (and it dependents)\n\ \ :module set the context for expression evaluation to \n\ \ :reload reload the current module set\n\ \ :set