projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
25628e2
)
FIX #1970: ghci -hide-all-packages should work
author
Simon Marlow
<marlowsd@gmail.com>
Wed, 28 May 2008 15:45:28 +0000
(15:45 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Wed, 28 May 2008 15:45:28 +0000
(15:45 +0000)
compiler/ghci/GhciMonad.hs
patch
|
blob
|
history
diff --git
a/compiler/ghci/GhciMonad.hs
b/compiler/ghci/GhciMonad.hs
index
80512e7
..
2c5a0a5
100644
(file)
--- a/
compiler/ghci/GhciMonad.hs
+++ b/
compiler/ghci/GhciMonad.hs
@@
-20,6
+20,7
@@
import HscTypes
import SrcLoc
import Module
import ObjLink
import SrcLoc
import Module
import ObjLink
+import Linker
import StaticFlags
import Data.Maybe
import StaticFlags
import Data.Maybe
@@
-295,11
+296,8
@@
GLOBAL_VAR(stderr_ptr, error "no stderr_ptr", Ptr ())
initInterpBuffering :: GHC.Session -> IO ()
initInterpBuffering session
= do -- make sure these are linked
initInterpBuffering :: GHC.Session -> IO ()
initInterpBuffering session
= do -- make sure these are linked
- mb_hval1 <- GHC.compileExpr session "System.IO.stdout"
- mb_hval2 <- GHC.compileExpr session "System.IO.stderr"
- mb_hval3 <- GHC.compileExpr session "System.IO.stdin"
- when (any isNothing [mb_hval1,mb_hval2,mb_hval3]) $
- panic "interactiveUI:setBuffering"
+ dflags <- GHC.getSessionDynFlags session
+ initDynLinker dflags
-- ToDo: we should really look up these names properly, but
-- it's a fiddle and not all the bits are exposed via the GHC
-- ToDo: we should really look up these names properly, but
-- it's a fiddle and not all the bits are exposed via the GHC