X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=d1b6b771c52908348c219c257235caf007a34f26;hb=224131a71a9edbd6aa8d5a704f1012f8a0a88814;hp=cf749d2abce35d02c40fc0807d54feb9f11ab7c9;hpb=395065b0433334f67c3db84af14de1aef8f038a0;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index cf749d2..d1b6b77 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,14 +1,12 @@ +{-# OPTIONS -#include "Linker.h" -#include "SchedAPI.h" #-} ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.83 2001/07/24 04:41:40 ken Exp $ +-- $Id: InteractiveUI.hs,v 1.105 2002/01/03 17:09:15 simonmar Exp $ -- -- GHC Interactive User Interface -- -- (c) The GHC Team 2000 -- ----------------------------------------------------------------------------- - -{-# OPTIONS -#include "Linker.h" #-} -{-# OPTIONS -#include "SchedAPI.h" #-} module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where #include "../includes/config.h" @@ -16,8 +14,8 @@ module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where import Packages import CompManager -import HscTypes ( GhciMode(..) ) -import MkIface ( ifaceTyCls ) +import HscTypes ( TyThing(..) ) +import MkIface import ByteCodeLink import DriverFlags import DriverState @@ -25,10 +23,19 @@ 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, isPrimTyCon ) +import FieldLabel ( fieldLabelTyCon ) +import SrcLoc ( isGoodSrcLoc ) +import Name ( Name, isHomePackageName, nameSrcLoc, nameOccName, + NamedThing(..) ) +import OccName ( isSymOcc ) +import BasicTypes ( defaultFixity ) import Outputable import CmdLineOpts ( DynFlag(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset ) -import Panic ( GhcException(..) ) +import Panic ( GhcException(..), showGhcException ) import Config #ifndef mingw32_TARGET_OS @@ -40,7 +47,9 @@ import Dynamic #if HAVE_READLINE_HEADERS && HAVE_READLINE_LIBS import Readline #endif +import Concurrent import IOExts +import SystemExts import Numeric import List @@ -49,7 +58,7 @@ import CPUTime import Directory import IO import Char -import Monad ( when ) +import Monad ( when, join ) import PrelGHC ( unsafeCoerce# ) import Foreign ( nullPtr ) @@ -77,7 +86,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), @@ -97,12 +106,13 @@ helpText = "\ \ :cd change directory to \n\ \ :def define a command :\n\ \ :help, :? display this list of commands\n\ -\ :info [ ...] display information about the given names, or\n\ -\ about currently loaded files if no names given\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\ \ :set