RE: Posix.getFileStatus

2003-02-28 Thread Simon Marlow

 (1) I think Posix.getFileStatus should respond to a file 
 which isn't there with something rather more helpful than
 system error.   For example, a No such file or directory message.

With today's CVS sources:

Prelude System.Posix.getFileStatus /tmp/foo
Loading package unix ... linking ... done.
*** Exception: does not exist
Action: getFileStatus
Reason: No such file or directory

The posix library is undergoing a rewrite, which is about 80-90% done so
far.  I'd appreciate any testing you can subject the new System.Posix
library to, though.

Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: Posix.getFileStatus

2003-02-28 Thread Dean Herington
George Russell wrote:

 (2) The logical way of spotting whether a file is actually there is the
 queryFile function, documented for example here:
 http://haskell.cs.yale.edu/ghc/docs/latest/html/hslibs/files-and-directories.html
 But sadly the queryFile function does not appear to be in the Posix module!  At 
 least not for
 ghc5.04.2.

Apparently, `queryAccess` and `queryFile` are called `fileAccess` and `fileExist`.

Dean

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs