X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2FGhciMonad.hs;h=52b28efdffc3d60078fa9b0167452deb8a3681c3;hb=1bf40a4b38180b8b1c1bdaf4919bc327d5b27abe;hp=2aff48385e3d5962cb00282ea11d3f6415e3f13f;hpb=eccb2d89eb4b34f31e8ea337d5f8673605f71665;p=ghc-hetmet.git diff --git a/ghc/GhciMonad.hs b/ghc/GhciMonad.hs index 2aff483..52b28ef 100644 --- a/ghc/GhciMonad.hs +++ b/ghc/GhciMonad.hs @@ -56,7 +56,7 @@ data GHCiState = GHCiState editor :: String, stop :: String, options :: [GHCiOption], - prelude :: GHC.Module, + prelude :: GHC.ModuleName, line_number :: !Int, -- input line break_ctr :: !Int, breaks :: ![(Int, BreakLocation)], @@ -78,7 +78,7 @@ data GHCiState = GHCiState ghc_e :: Bool -- True if this is 'ghc -e' (or runghc) } -data CtxtCmd -- In each case, the first [String] are the starred modules +data CtxtCmd -- In each case, the first [String] are the starred modules -- and the second are the unstarred ones = SetContext [String] [String] | AddModules [String] [String] @@ -210,7 +210,7 @@ instance ExceptionMonad (InputT GHCi) where gunblock = Haskeline.unblock -- for convenience... -getPrelude :: GHCi Module +getPrelude :: GHCi ModuleName getPrelude = getGHCiState >>= return . prelude getDynFlags :: GhcMonad m => m DynFlags