
Hi Bulat, On Sun, Jul 15, 2007 at 05:33:57PM +0400, Bulat Ziganshin wrote:
Sunday, July 15, 2007, 3:03:20 PM, you wrote:
well, i mean that FilePath libarry should contain some sort of normalization function that omits '\' at end of path unless it's a ":\" combination. in other words, function that you now write should be a part of FilePath library because it's a standard functionality
Ah, I see. Yes, that would work too, although I think Neil and I would prefer the more general *Drive functions being exposed (shout if I'm wrong, Neil).
with direct use of *Drive function your code will become windows-specific.
Not so! Prelude System.FilePath.Posix> isDrive "" True Prelude System.FilePath.Posix> isDrive "/" True Prelude System.FilePath.Posix> isDrive "/foo" False Prelude System.FilePath.Posix> isDrive "/foo/" False
nevertheless, exporting *Drive and other internal functions will be great anyway - it's hard to predict all the possible ways of using library
I agree. Thanks Ian