#2973: we should virtualise the CWD inside the GHC API, not in the client
authorSimon Marlow <marlowsd@gmail.com>
Tue, 27 Jan 2009 12:16:48 +0000 (12:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Tue, 27 Jan 2009 12:16:48 +0000 (12:16 +0000)
commit7f1db085b2256e3372feca52d493ca7577413cbe
tree8984eb67d10232d4f44b64547f666bc1096a2e75
parentce6ff822da66dda9db8d3255e78448754981b6e1
#2973: we should virtualise the CWD inside the GHC API, not in the client
The problem is that we install the client's CWD before calling
runStmt, but runStmt has to load modules before running the code.  We
need to install the CWD just before running the code instead, which
means it has to be done inside runStmt (and resume).
compiler/ghci/GhciMonad.hs
compiler/ghci/InteractiveUI.hs
compiler/main/HscTypes.lhs
compiler/main/InteractiveEval.hs