
27 Jan
2008
27 Jan
'08
6:17 p.m.
Hi
That seems strange, actually. I would expect, perhaps naively, that
takeDirectory == fst . splitFileName dropFileName == takeDirectory
is there a good reason for these not to be true?
The original motivation was that: uncurry (++) . splitFileName === id And hence dropFileName = fst . splitFileName However, in practice I think its more useful to use takeDirectory, since usually the trailing slash gets in the way. Those were the original reasons, but it is possible they were bad reasons from the beginning. Thanks Neil