RE: IO errors

2001-11-29 Thread Simon Peyton-Jones
| 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

RE: IO errors

2001-11-29 Thread Simon Marlow
> 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") >

IO errors

2001-11-28 Thread Ian Lynagh
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")

RE: IO Errors

2001-05-25 Thread Steinitz, Dominic J
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

RE: IO Errors

2001-05-25 Thread Simon Marlow
> 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

IO Errors

2001-05-25 Thread Steinitz, Dominic J
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