Don't read ~/.ghci on breakpoints.
authorLemmih <lemmih@gmail.com>
Tue, 9 May 2006 22:34:55 +0000 (22:34 +0000)
committerLemmih <lemmih@gmail.com>
Tue, 9 May 2006 22:34:55 +0000 (22:34 +0000)
compiler/ghci/InteractiveUI.hs

index d92cc53..c09aab5 100644 (file)
@@ -240,8 +240,9 @@ jumpFunction session@(Session ref) (I# idsPtr) hValues location b
              new_ic = ictxt { ic_rn_local_env = new_rn_env, 
                              ic_type_env     = new_type_env }
          writeIORef ref (hsc_env { hsc_IC = new_ic })
+         is_tty <- hIsTerminalDevice stdin
          withExtendedLinkEnv (zip names hValues) $
-           startGHCi (runGHCi [] Nothing)
+           startGHCi (interactiveLoop is_tty True)
                      GHCiState{ progname = "<interactive>",
                                 args = [],
                                 prompt = location++"> ",