X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=af0faad30855783c68ba570ca5a26ebfef04f37f;hb=1965e001f7e023563c1d8925c4f75f63989a8720;hp=8915badcaa876c4bb186b652733b07290b29488b;hpb=f3c0c2571a40d667cbe57ac1442b1d5ebaead0e0;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index 8915bad..af0faad 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.66 2001/05/04 16:36:38 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.90 2001/08/16 10:54:22 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -8,13 +8,16 @@ ----------------------------------------------------------------------------- {-# OPTIONS -#include "Linker.h" #-} +{-# OPTIONS -#include "SchedAPI.h" #-} module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where #include "../includes/config.h" #include "HsVersions.h" +import Packages import CompManager -import CmStaticInfo +import HscTypes ( GhciMode(..), TyThing(..) ) +import MkIface ( ifaceTyCls ) import ByteCodeLink import DriverFlags import DriverState @@ -22,13 +25,23 @@ import DriverUtil import Linker import Finder ( flushPackageCache ) import Util -import Name ( Name ) +import Id ( isRecordSelector, recordSelectorFieldLabel, + isDataConWrapId, idName ) +import Class ( className ) +import TyCon ( tyConName, tyConClass_maybe ) +import FieldLabel ( fieldLabelTyCon ) +import SrcLoc ( isGoodSrcLoc ) +import Name ( Name, isHomePackageName, nameSrcLoc, NamedThing(..) ) +import BasicTypes ( defaultFixity ) import Outputable -import CmdLineOpts ( DynFlag(..), dopt_unset ) +import CmdLineOpts ( DynFlag(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset ) import Panic ( GhcException(..) ) import Config +#ifndef mingw32_TARGET_OS import Posix +#endif + import Exception import Dynamic #if HAVE_READLINE_HEADERS && HAVE_READLINE_LIBS @@ -54,7 +67,7 @@ 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" @@ -67,6 +80,7 @@ builtin_commands = [ ("def", keepGoing defineMacro), ("help", keepGoing help), ("?", keepGoing help), + ("info", keepGoing info), ("load", keepGoing loadModule), ("module", keepGoing setContext), ("reload", keepGoing reloadModule), @@ -84,20 +98,22 @@ shortHelpText = "use :? for help.\n" helpText = "\ \ Commands available from the prompt:\n\ -\\ -\ evaluate/run \n\ -\ :cd change directory to \n\ -\ :def define a command :\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