projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 2001-06-07 10:45:30 by sewardj]
[ghc-hetmet.git]
/
ghc
/
tests
/
lib
/
IO
/
hSeek004.hs
1
-- !!! can't seek an AppendMode handle
2
3
import IO
4
#if defined(__MINGW32__)
5
import PrelHandle(hSetBinaryMode)
6
#endif
7
8
main = do
9
h <- openFile "hSeek004.out" AppendMode
10
# if defined(__MINGW32__)
11
hSetBinaryMode h True
12
# endif
13
try (hSeek h AbsoluteSeek 0) >>= print