| 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 r
> 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")
>
Hi guys,
Me again I'm afraid...
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")
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
> 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?
Cheers,
Simon
___
Haskell mailin
Can anyone tell me why this behaves as it does? In Hugs, I get
C:\My Documents\functional\ldapsck1\buffer.hs
Main> main
Illegal operation
(561 reductions, 1029 cells)
Main>
If the input file is the one line:
1234567812345678
the output file is:
Starting logging
1234567812345678
Error
In gh