Directory.doesDirectoryExist inconsistency

2002-10-16 Thread Claus Reinke
I've just been chasing a portability problem, where a largish third-party program works fine on our suns (ghc-5.02.3), but chokes under cygwin/windows (ghc-5.04). Comes down to an inconsistency in the handling of (trailing?) slashes in Directory.doesDirectoryExist (see a and b below). Consequence

Re: Directory.doesDirectoryExist inconsistency

2002-10-16 Thread Sigbjorn Finne
: "Claus Reinke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 07:21 Subject: Directory.doesDirectoryExist inconsistency > I've just been chasing a portability problem, where a largish third-party > program works fine on our su

Re: Directory.doesDirectoryExist inconsistency

2002-10-23 Thread Claus Reinke
| > That would take care of the incompatibility here, but | > it's a slippery slope. Should Haskell provide you with | > a platform-independent view of filenames and file systems? Just because that wouldn't be practical doesn't mean it wouldn't be the right thing to do (and vice versa, unfortunat

Re: Directory.doesDirectoryExist inconsistency

2002-10-23 Thread Mike Thomas
Hi all. > | across those platforms up to the limits of available programmer time > and > | common sense. > Would anyone care to remove the trailing '/' or '\' in the Win32 version > of doesDirectoryExist? I'll put it on my list, but it's so much easier to write emails about the problem than

RE: Directory.doesDirectoryExist inconsistency

2002-10-22 Thread Simon Peyton-Jones
by Haskell98. | | --sigbjorn | | - Original Message - | From: "Claus Reinke" <[EMAIL PROTECTED]> | To: <[EMAIL PROTECTED]> | Sent: Wednesday, October 16, 2002 07:21 | Subject: Directory.doesDirectoryExist inconsistency | | | > I've just been chasing a portability problem, wh

Re: Directory.doesDirectoryExist inconsistency

2002-10-22 Thread Sigbjorn Finne
n Finne" <[EMAIL PROTECTED]>; "Claus Reinke" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 22, 2002 08:50 Subject: RE: Directory.doesDirectoryExist inconsistency > Sigbjorn (and others interested in Win32 I/O behaviour) > > The fact tha

Re: Directory.doesDirectoryExist inconsistency

2002-10-22 Thread Mike Thomas
sage - > From: "Simon Peyton-Jones" <[EMAIL PROTECTED]> > To: "Sigbjorn Finne" <[EMAIL PROTECTED]>; "Claus Reinke" > <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Tuesday, October 22, 2002 08:50 > Subject: RE: Directory

RE: Directory.doesDirectoryExist inconsistency

2002-10-23 Thread Simon Peyton-Jones
| > That would take care of the incompatibility here, but | > it's a slippery slope. | > Should Haskell provide you with | > a platform-independent view of filenames and file | > systems? | | I think that if a language implementation takes the trouble to provide a | cross-platform library function