projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
adf986b
)
Replace an outputStr with putStrLn calls; fixes #4332
author
Ian Lynagh
<igloo@earth.li>
Sun, 3 Oct 2010 12:57:07 +0000
(12:57 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Sun, 3 Oct 2010 12:57:07 +0000
(12:57 +0000)
ghc/InteractiveUI.hs
patch
|
blob
|
history
diff --git
a/ghc/InteractiveUI.hs
b/ghc/InteractiveUI.hs
index
c457d8a
..
11a3c98
100644
(file)
--- a/
ghc/InteractiveUI.hs
+++ b/
ghc/InteractiveUI.hs
@@
-894,7
+894,8
@@
changeDirectory "" = do
changeDirectory dir = do
graph <- GHC.getModuleGraph
when (not (null graph)) $
changeDirectory dir = do
graph <- GHC.getModuleGraph
when (not (null graph)) $
- outputStr "Warning: changing directory causes all loaded modules to be unloaded,\nbecause the search path has changed.\n"
+ do liftIO $ putStrLn "Warning: changing directory causes all loaded modules to be unloaded,"
+ liftIO $ putStrLn "because the search path has changed."
prev_context <- GHC.getContext
GHC.setTargets []
_ <- GHC.load LoadAllTargets
prev_context <- GHC.getContext
GHC.setTargets []
_ <- GHC.load LoadAllTargets