Re: Read file fails on Windows
> I just installed ghc-4.08.2 on Windows NT. I tried the following program Make sure you've got the latest version of GHC (uploaded earlier today), though I can't see why it would fail with any earlier version either. Anyway, it works fine for me. -- http://sc3d.org/rrt/ | aphorism, n. a wise lie ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Read file fails on Windows
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 ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs