X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fghci%2FDebugger.hs;h=504dc1dfbd7b54995d5a81aff4b0dcaaaae9ddd9;hb=d436c70d43fb905c63220040168295e473f4b90a;hp=64c1917cf994322c158a19d62b6b738e34b1268d;hpb=9ffadf219cbc4f8ec57264786df936a3cee88aec;p=ghc-hetmet.git diff --git a/compiler/ghci/Debugger.hs b/compiler/ghci/Debugger.hs index 64c1917..504dc1d 100644 --- a/compiler/ghci/Debugger.hs +++ b/compiler/ghci/Debugger.hs @@ -20,18 +20,18 @@ import Id import Name import Var hiding ( varName ) import VarSet -import Name +-- import Name import UniqSupply import TcType import GHC -import DynFlags +-- import DynFlags import InteractiveEval import Outputable -import SrcLoc +-- import SrcLoc import PprTyThing import MonadUtils -import Exception +-- import Exception import Control.Monad import Data.List import Data.Maybe @@ -171,7 +171,7 @@ showTerm term = do -- with the changed error handling and logging? let noop_log _ _ _ _ = return () expr = "show " ++ showSDoc (ppr bname) - GHC.setSessionDynFlags dflags{log_action=noop_log} + _ <- GHC.setSessionDynFlags dflags{log_action=noop_log} txt_ <- withExtendedLinkEnv [(bname, val)] (GHC.compileExpr expr) let myprec = 10 -- application precedence. TODO Infix constructors