Commit b78e0085 authored by Ian Lynagh's avatar Ian Lynagh

Fix hReady001 on Windows

parent 8c9ede99
......@@ -3,13 +3,13 @@
-- hReady should throw and EOF exception at the end of a file. Trac #1063.
import IO
#ifdef i386_unknown_mingw32
#ifdef mingw32_HOST_OS
import GHC.Handle(hSetBinaryMode)
#endif
main = do
h <- openFile "hReady001.hs" ReadMode
#ifdef i386_unknown_mingw32
#ifdef mingw32_HOST_OS
hSetBinaryMode h True
#endif
hReady h >>= print
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment