Matthew Brecknell <matt...@brecknell.net> writes:

> And is confirmed by a simple test (with GHC 6.10.4 on Linux):
>
> import Prelude hiding(catch)
> import Control.Concurrent
> import Control.Exception
>
> main = do
>   chan <- newEmptyMVar
>   done <- newEmptyMVar
>   kill <- block $ forkIO $ do
>     (takeMVar chan >>= putMVar done)
>       `onException` putMVar done "Exception received during takeMVar"
> ...

Should this be "forkIO $ block" instead of "block $ forkIO"?

G
-- 
Gregory Collins <g...@gregorycollins.net>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to