X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fghci%2FInteractiveUI.hs;h=928d14d4252533e507f0f90d2530eaa0b39b2a3e;hb=5a99b3a32d863b6cafc531a27e4c09e41e5687db;hp=ab487d12d29731590f5c7acaad1f8c0cf7274c2b;hpb=79f0c44238069363ece749a049727051cd6a89b3;p=ghc-hetmet.git diff --git a/ghc/compiler/ghci/InteractiveUI.hs b/ghc/compiler/ghci/InteractiveUI.hs index ab487d1..928d14d 100644 --- a/ghc/compiler/ghci/InteractiveUI.hs +++ b/ghc/compiler/ghci/InteractiveUI.hs @@ -1,14 +1,14 @@ {-# OPTIONS -#include "Linker.h" #-} ----------------------------------------------------------------------------- --- $Id: InteractiveUI.hs,v 1.151 2003/04/23 10:42:36 simonmar Exp $ +-- $Id: InteractiveUI.hs,v 1.169 2004/07/30 08:40:11 simonpj Exp $ -- -- GHC Interactive User Interface -- --- (c) The GHC Team 2000 +-- (c) The GHC Team 2004 -- ----------------------------------------------------------------------------- module InteractiveUI ( - interactiveUI, -- :: CmState -> [FilePath] -> [LibrarySpec] -> IO () + interactiveUI, -- :: CmState -> [FilePath] -> IO () ghciWelcomeMsg ) where @@ -17,35 +17,30 @@ module InteractiveUI ( import CompManager import HscTypes ( TyThing(..), HomeModInfo(hm_linkable), HomePackageTable, - isObjectLinkable ) -import HsSyn ( TyClDecl(..), ConDecl(..), Sig(..) ) -import MkIface ( ifaceTyThing ) + isObjectLinkable, GhciMode(..) ) +import IfaceSyn ( IfaceType, IfaceDecl(..), IfaceClassOp(..), IfaceConDecls(..), IfaceConDecl(..), + pprIfaceDeclHead, pprParendIfaceType, pprIfaceForAllPart ) +import FunDeps ( pprFundeps ) import DriverFlags import DriverState -import DriverUtil ( remove_spaces, handle ) -import Linker ( initLinker, showLinkerState, linkLibraries, - linkPackages ) +import DriverUtil ( remove_spaces ) +import Linker ( showLinkerState, linkPackages ) import Util -import IdInfo ( GlobalIdDetails(..) ) -import Id ( isImplicitId, idName, globalIdDetails ) -import Class ( className ) -import TyCon ( tyConName, tyConClass_maybe, isPrimTyCon, DataConDetails(..) ) -import DataCon ( dataConName ) -import FieldLabel ( fieldLabelTyCon ) -import SrcLoc ( isGoodSrcLoc ) import Module ( showModMsg, lookupModuleEnv ) import Name ( Name, isHomePackageName, nameSrcLoc, nameOccName, NamedThing(..) ) -import OccName ( isSymOcc ) -import BasicTypes ( defaultFixity, SuccessFlag(..) ) +import OccName ( OccName, isSymOcc, occNameUserString ) +import BasicTypes ( StrictnessMark(..), Fixity, defaultFixity, SuccessFlag(..) ) import Packages import Outputable import CmdLineOpts ( DynFlag(..), DynFlags(..), getDynFlags, saveDynFlags, restoreDynFlags, dopt_unset ) import Panic hiding ( showException ) import Config +import SrcLoc ( SrcLoc, isGoodSrcLoc ) #ifndef mingw32_HOST_OS +import DriverUtil( handle ) import System.Posix #if __GLASGOW_HASKELL__ > 504 hiding (getEnv) @@ -65,6 +60,7 @@ import Control.Concurrent import Numeric import Data.List +import Data.Int ( Int64 ) import System.Cmd import System.CPUTime import System.Environment @@ -105,6 +101,7 @@ builtin_commands = [ ("set", keepGoing setCmd), ("show", keepGoing showCmd), ("type", keepGoing typeOfExpr), + ("kind", keepGoing kindOfType), ("unset", keepGoing unsetOptions), ("undef", keepGoing undefineMacro), ("quit", quit) @@ -141,6 +138,7 @@ helpText = "\ \ :show bindings show the current bindings made at the prompt\n\ \\n\ \ :type show the type of \n\ +\ :kind show the kind of \n\ \ :undef undefine user-defined command :\n\ \ :unset