patch applied (ghc): #2973: we should virtualise the CWD inside the GHC API, not in the client

Simon Marlow simonmarhaskell at gmail.com
Tue Jan 27 07:54:43 EST 2009


Tue Jan 27 04:16:48 PST 2009  Simon Marlow <marlowsd at gmail.com>
  * #2973: we should virtualise the CWD inside the GHC API, not in the client
  Ignore-this: 5d57181d25a0661ad20fa48154f4a80
  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).

    M ./compiler/ghci/GhciMonad.hs -17 +2
    M ./compiler/ghci/InteractiveUI.hs -3
    M ./compiler/main/HscTypes.lhs +3
    M ./compiler/main/InteractiveEval.hs +25

View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20090127121648-12142-e1a9df1698b1ea4d8efb22f1c7057f730d1b6370.gz



More information about the Cvs-ghc mailing list