f31f69d017c7f5ac20eccdc88aad1c4d604bb8ca
[ghc-hetmet.git] / ghc / tests / lib / IO / hReady001.hs
1 -- !!! hReady test
2
3  -- hReady should probably return False at the end of a file,
4  -- but in GHC it returns True (known bug).
5
6 import IO
7
8 main = do
9  h <- openFile "hReady001.hs" ReadMode
10  hSeek h SeekFromEnd 0
11  hReady h >>= print