System.FilePath propsal (Was: Cabal feedback notes)
Krasimir Angelov
ka2_mail at yahoo.com
Thu Oct 28 04:16:05 EDT 2004
Here is the third version.
- FilePath is added to export list
- The pathParents is modified and now it returns
the root directory (see the examples in comments). You
can easily get the previous behaviour:
oldPathParents = tail . pathParents
- The getPathRoot function is removed. It can be
easily emulated with pathParents:
getPathRoot path =
case pathParents path of
(".":path) -> Nothing
(root:path) -> Just root
I can't see any reason to keep this function.
Cheers,
Krasimir
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FilePath.hs
Type: application/octet-stream
Size: 14775 bytes
Desc: FilePath.hs
Url : http://www.haskell.org//pipermail/libraries/attachments/20041028/a1a80a2e/FilePath-0001.obj
More information about the Libraries
mailing list