A quick look at the source looks like both GHC and NHC will
simply pass
on errors from the OS, so for example with
module Main where
import IO
import Directory
main :: IO()
main = do catch (createDirectory this/does/not/exist/foo)
(\e -
| Two possibilities: either createDirectory should act like
| 'mkdir -p' and make the whole path, or the library report
| should document isDoesNotExistError as a possible error
| thrown by createDirectory. I'd vote for the latter.
I'm willing to do that for H98 unless anyone can think of a
13:03:00
To: Dominic Steinitz
haskell
cc:
bcc:
Subject:RE: IO Errors
In ghc, the program hangs without even creating a file.
With GHC 5.00.1 here it creates the output file containing:
Starting logging
1234567812345678
Finishing logging
which GHC version was hanging for you