X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=a2225ff0a4f252ee87b5d8c8ce48f2a3bb19bebe;hb=c137d2829415beb3daac2878d4e2d3008f13efc8;hp=bfbcb750fffeea2d579e345f20d5a607b9be4cf7;hpb=77435152125d6fc8e0be97d69827299e6607d225;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index bfbcb75..a2225ff 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.76 2001/06/15 11:40:29 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.88 2001/08/15 15:39:59 simonmar Exp $ -- -- GHC Interactive User Interface -- @@ -8,6 +8,7 @@ ----------------------------------------------------------------------------- {-# OPTIONS -#include "Linker.h" #-} +{-# OPTIONS -#include "SchedAPI.h" #-} module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where #include "../includes/config.h" @@ -15,7 +16,8 @@ module InteractiveUI ( interactiveUI, ghciWelcomeMsg ) where import Packages import CompManager -import HscTypes ( GhciMode(..) ) +import HscTypes ( GhciMode(..), TyThing(..) ) +import MkIface ( ifaceTyCls ) import ByteCodeLink import DriverFlags import DriverState @@ -23,7 +25,11 @@ import DriverUtil import Linker import Finder ( flushPackageCache ) import Util -import Name ( Name ) +import Id ( isRecordSelector, isDataConWrapId, idName ) +import Class ( className ) +import TyCon ( tyConName ) +import SrcLoc ( isGoodSrcLoc ) +import Name ( Name, isHomePackageName, nameSrcLoc ) import Outputable import CmdLineOpts ( DynFlag(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset ) import Panic ( GhcException(..) ) @@ -71,6 +77,7 @@ builtin_commands = [ ("def", keepGoing defineMacro), ("help", keepGoing help), ("?", keepGoing help), + ("info", keepGoing info), ("load", keepGoing loadModule), ("module", keepGoing setContext), ("reload", keepGoing reloadModule), @@ -88,12 +95,14 @@ shortHelpText = "use :? for help.\n" helpText = "\ \ Commands available from the prompt:\n\ -\\ +\\ \ evaluate/run \n\ +\ :add ... add module(s) to the current target set\n\ \ :cd change directory to \n\ \ :def define a command :\n\ \ :help, :? display this list of commands\n\ -\ :load load a module (and its dependents)\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