summaryrefslogtreecommitdiff
path: root/libraries/base/tests/IO/hIsEOF001.hs
blob: 2230687edb881c43c0e94e19a2031cc3de4c672f (plain)
1
2
3
4
5
6
7
8
-- !!! hIsEOF (on stdout)

import System.IO ( hIsEOF, stdout )
import System.IO.Error

main = do
  flg <- hIsEOF stdout `catchIOError` \ _ -> putStrLn "hIsEOF failed" >> return False
  print flg