summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/lib/IO/hSeek004.hs
blob: 9ad7c13e7fb6fca6516308a41c10c054a94ff5be (plain)
1
2
3
4
5
6
7
8
-- !!! can't seek an AppendMode handle

import System.IO
import System.IO.Error

main = do
  h <- openFile "hSeek004.out" AppendMode
  try (hSeek h AbsoluteSeek 0) >>= print