From 09ea5a5eeb6b5b5519d6c6e9f7ed11ae5aa125cd Mon Sep 17 00:00:00 2001 From: krasimir Date: Fri, 8 Apr 2005 10:51:37 +0000 Subject: [PATCH 1/1] [project @ 2005-04-08 10:51:37 by krasimir] Replace hPutStrLn stderr with debugTraceMsg --- ghc/compiler/ghci/Linker.lhs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ghc/compiler/ghci/Linker.lhs b/ghc/compiler/ghci/Linker.lhs index 4ebbc8b..0a18638 100644 --- a/ghc/compiler/ghci/Linker.lhs +++ b/ghc/compiler/ghci/Linker.lhs @@ -43,6 +43,7 @@ import Outputable import Panic ( GhcException(..) ) import Util ( zipLazy, global ) import StaticFlags ( v_Ld_inputs ) +import ErrUtils ( debugTraceMsg ) -- Standard libraries import Control.Monad ( when, filterM, foldM ) @@ -620,11 +621,9 @@ unload dflags linkables new_pls <- unload_wkr dflags linkables pls writeIORef v_PersistentLinkerState new_pls - let verb = verbosity dflags - when (verb >= 3) $ do - hPutStrLn stderr (showSDoc + debugTraceMsg dflags 3 (showSDoc (text "unload: retaining objs" <+> ppr (objs_loaded new_pls))) - hPutStrLn stderr (showSDoc + debugTraceMsg dflags 3 (showSDoc (text "unload: retaining bcos" <+> ppr (bcos_loaded new_pls))) return () -- 1.7.10.4