projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1997-07-27 00:59:57 by sof]
[ghc-hetmet.git]
/
ghc
/
tests
/
io
/
should_run
/
po008.hs
1
import Posix
2
3
main =
4
installHandler realTimeAlarm (Catch alarmclock) Nothing >>
5
putStr "Scheduling an alarm in 5 seconds...\n" >>
6
scheduleAlarm 5 >>
7
putStr "Sleeping one minute.\n" >>
8
sleep 60 >>
9
putStr "How did I get here?\n"
10
11
alarmclock =
12
putStr "The alarm went off.\n"