From: Simon Marlow Date: Wed, 10 Oct 2007 08:58:20 +0000 (+0000) Subject: FIX #1681: withBreakAction had too large a scope in runStmt X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=70f308087c2291a3114bfedaa7ae915b1a1ac70a FIX #1681: withBreakAction had too large a scope in runStmt --- diff --git a/compiler/main/InteractiveEval.hs b/compiler/main/InteractiveEval.hs index 9afedae..bfcf5f6 100644 --- a/compiler/main/InteractiveEval.hs +++ b/compiler/main/InteractiveEval.hs @@ -209,10 +209,10 @@ runStmt (Session ref) expr step Nothing -> return RunFailed Just (ids, hval) -> do - withBreakAction (isStep step) dflags' breakMVar statusMVar $ do - - let thing_to_run = unsafeCoerce# hval :: IO [HValue] - status <- sandboxIO dflags' statusMVar thing_to_run + status <- + withBreakAction (isStep step) dflags' breakMVar statusMVar $ do + let thing_to_run = unsafeCoerce# hval :: IO [HValue] + sandboxIO dflags' statusMVar thing_to_run let ic = hsc_IC hsc_env bindings = (ic_tmp_ids ic, ic_tyvars ic)