summaryrefslogtreecommitdiff
path: root/ghc/compiler/ghci/Linker.lhs
diff options
context:
space:
mode:
authorkrasimir <unknown>2005-04-08 10:51:37 +0000
committerkrasimir <unknown>2005-04-08 10:51:37 +0000
commit09ea5a5eeb6b5b5519d6c6e9f7ed11ae5aa125cd (patch)
tree4521b11ba60db68dee0bc7645901d6d8459f5173 /ghc/compiler/ghci/Linker.lhs
parenteb561a9cd9bf5c4930f3e3899c9dfc1fd23e5bf6 (diff)
downloadhaskell-09ea5a5eeb6b5b5519d6c6e9f7ed11ae5aa125cd.tar.gz
[project @ 2005-04-08 10:51:37 by krasimir]
Replace hPutStrLn stderr with debugTraceMsg
Diffstat (limited to 'ghc/compiler/ghci/Linker.lhs')
-rw-r--r--ghc/compiler/ghci/Linker.lhs7
1 files changed, 3 insertions, 4 deletions
diff --git a/ghc/compiler/ghci/Linker.lhs b/ghc/compiler/ghci/Linker.lhs
index 4ebbc8b956..0a18638b30 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 ()