Read file fails on Windows
Meurig Sage
meurig at dcs.gla.ac.uk
Thu Feb 22 09:49:09 EST 2001
Hi
I just installed ghc-4.08.2 on Windows NT. I tried the following program
module Main where
import System
main = do
argv <- getArgs
case argv of
(inp:out:[]) -> do
contents <- readFile inp
writeFile out contents
_ -> putStr "usage_msg "
I compiled with ghc -O -o test test.hs
I ran it with
test re_tests re_testsout
When running the program it failed with
Fail: failed
Action: openFile
Reason: (error code: 0) re_tests
The same program worked fine when compiled with ghc-4.08.1.
Meurig
More information about the Glasgow-haskell-bugs
mailing list