projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git]
/
ghc
/
misc
/
examples
/
posix
/
po006
/
Main.hs
1
import LibPosix
2
3
main =
4
epochTime >>= \ start ->
5
sleep 5 >>
6
let timeleft = 0 in
7
epochTime >>= \ finish ->
8
putStr "Started: " >>
9
putText start >>
10
putStr "\nSlept: " >>
11
putText (5 - timeleft) >>
12
putStr "\nFinished: " >>
13
putText finish >>
14
putChar '\n'