projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-03-31 17:00:55 by panne]
[ghc-hetmet.git]
/
ghc
/
tests
/
concurrent
/
should_run
/
conc019.hs
1
import IO
2
import Concurrent
3
import Exception
4
5
main = do
6
forkIO (Exception.catch (do { m <- newEmptyMVar; takeMVar m })
7
(\e -> putStrLn ("caught: " ++ show e)))
8
let x = sum [1..10000]
9
x `seq` print x