important news: refocusing discussion

John Goerzen jgoerzen at
Fri Mar 24 17:34:53 EST 2006

On Fri, Mar 24, 2006 at 11:07:53AM +0000, Malcolm Wallace wrote:
> threads, and I assume that since a non-concurrent implementation has
> only one thread, that thread will be trying to MVar-synchronise with
> something that does not exist, and hence be blocked for ever.  I can

Not necessarily.  An MVar is a useful tool in place of an IORef.  It
works well when a given hunk of code is used in a threaded program, but
it also works well in a non-threaded program.  If they are used
correctly, there is no problem.

-- John

More information about the Haskell-prime mailing list