blob: dc1150073db8105075db97117647333310ec1004 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Main where
import Control.Exception
import Control.Concurrent
import Prelude hiding (catch)
-- the BlockOnDeadMVar exception doesn't cause any output by default
main = do
forkIO (do m <- newEmptyMVar; takeMVar m)
print (sum [1..10000])
|