| > 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 then that function should be
consistent
| across those platforms up to the limits of available programmer time
and
| common sense.
| 
| For example, I think that Haskell 98 library functions should have
| particular care applied to them and I think that the trailing "/"
problem
| should be eliminated.  Allowable cross platform variations should be
| documented in the standard.

| By the same logic, I don't believe that much effort at all should be
applied
| to reproducing cross-platform behaviour in the GHC Posix library on
systems
| which do not support Posix.

This is exactly my position too.   Yes, it's a slippery slope, but so is
all of life.  We should strive to conceal gratuitous differences where
they are easy to conceal, but without ever pretending that the Win32 and
Unix are identical.  

Would anyone care to remove the trailing '/' or '\' in the Win32 version
of doesDirectoryExist?

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

Reply via email to