[Haskell-cafe] How to ensure code executes in the context of a specific OS thread?

David Barbour dmbarbour at gmail.com
Tue Jul 12 19:21:16 CEST 2011


On Tue, Jul 12, 2011 at 2:58 AM, Simon Marlow <marlowsd at gmail.com> wrote:

> I discovered the real reason we run statements in a separate thread: the
> GHCi debugger.  If the computation stops at a breakpoint, then we have to
> save the context and resume GHCi, which can only be done if the computation
> was running in a separate thread.
>
> The way things are arranged right now, each stopped computation gets a
> different thread.  What you want is for all these to be on the main thread.
>  It might be possible to arrange this, but it would require some non-trivial
> reorganisation in the implementation of interactive evaluation
> (compiler/main/**InteractiveEval.hs).  I'm going to have to leave this for
> now, sorry.  In the meantime you'll still be able to use -fno-ghci-sandbox,
> but the debugging features in GHCi will be disabled.
>
> Cheers,
>        Simon
>
>
Thanks for looking into it, Simon.

Regards,

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110712/421f2b17/attachment.htm>


More information about the Haskell-Cafe mailing list