26 Mar
2010
26 Mar
'10
2:43 p.m.
Matthew Brecknell <matthew@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 <greg@gregorycollins.net>