System.FilePath propsal (Was: Cabal feedback notes)

Krasimir Angelov ka2_mail at
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.


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FilePath.hs
Type: application/octet-stream
Size: 14775 bytes
Desc: FilePath.hs
Url :

More information about the Libraries mailing list