Proposal: expose the drive functions in the filepath package
igloo at earth.li
Sun Jul 15 09:46:44 EDT 2007
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
Prelude System.FilePath.Posix> isDrive ""
Prelude System.FilePath.Posix> isDrive "/"
Prelude System.FilePath.Posix> isDrive "/foo"
Prelude System.FilePath.Posix> isDrive "/foo/"
> nevertheless, exporting *Drive and other internal functions will be
> great anyway - it's hard to predict all the possible ways of using
More information about the Libraries