X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=e64323cda51614235d75592d6f5983e89caa1ef3;hb=ee43954806848ffbe78f7cb8cf6732c2d86306d2;hp=83061acf063354f65ace01d4ed6e96013f486917;hpb=04be746b439b8c470a4c12a3ea5b63d6e81a0241;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index 83061ac..e64323c 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.47 2001/02/13 17:13:39 sewardj Exp $ +-- $Id: InteractiveUI.hs,v 1.77 2001/06/18 09:09:28 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -10,28 +10,33 @@ {-# OPTIONS -#include "Linker.h" #-} module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where +#include "../includes/config.h" #include "HsVersions.h" +import Packages import CompManager -import CmStaticInfo +import HscTypes ( GhciMode(..) ) import ByteCodeLink import DriverFlags import DriverState import DriverUtil -import Type import Linker -import Finder -import Module -import Outputable +import Finder ( flushPackageCache ) import Util -import PprType {- instance Outputable Type; do not delete -} +import Name ( Name ) +import Outputable +import CmdLineOpts ( DynFlag(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset ) import Panic ( GhcException(..) ) import Config +#ifndef mingw32_TARGET_OS +import Posix +#endif + import Exception import Dynamic -#ifndef NO_READLINE -import Readline +#if HAVE_READLINE_HEADERS && HAVE_READLINE_LIBS +import Readline #endif import IOExts @@ -45,16 +50,15 @@ import Char import Monad ( when ) import PrelGHC ( unsafeCoerce# ) -import PrelPack ( packString ) -import PrelByteArr -import Foreign ( Ptr, nullPtr ) +import Foreign ( nullPtr ) +import CString ( peekCString ) ----------------------------------------------------------------------------- ghciWelcomeMsg = "\ \ ___ ___ _\n\ \ / _ \\ /\\ /\\/ __(_)\n\ -\ / /_\\// /_/ / / | | GHC Interactive, version " ++ cProjectVersion ++ ", For Haskell 98.\n\ +\ / /_\\// /_/ / / | | GHC Interactive, version " ++ cProjectVersion ++ ", for Haskell 98.\n\ \/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/\n\ \\\____/\\/ /_/\\____/|_| Type :? for help.\n" @@ -85,29 +89,31 @@ shortHelpText = "use :? for help.\n" helpText = "\ \ Commands available from the prompt:\n\ \\ -\ evaluate \n\ -\ :add add a module to the current set\n\ -\ :cd change directory to \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