projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 1996-07-26 20:58:52 by partain]
[ghc-hetmet.git]
/
ghc
/
misc
/
examples
/
io
/
io012
/
Main.hs
diff --git
a/ghc/misc/examples/io/io012/Main.hs
b/ghc/misc/examples/io/io012/Main.hs
index
9b7fba3
..
c5a16b7
100644
(file)
--- a/
ghc/misc/examples/io/io012/Main.hs
+++ b/
ghc/misc/examples/io/io012/Main.hs
@@
-1,11
+1,12
@@
-import LibCPUTime
+import IO -- 1.3
+
+import CPUTime
main =
openFile "/dev/null" WriteMode >>= \ h ->
- hPutText h (nfib 30) >>
+ hPrint h (nfib 30) >>
getCPUTime >>= \ t ->
- putText t >>
- putChar '\n'
+ print t
nfib :: Integer -> Integer
nfib n