announcing darcs

Ketil Z. Malde ketil@ii.uib.no
10 Apr 2003 08:29:42 +0200


Alastair Reid <alastair@reid-consulting-uk.ltd.uk> writes:

> [moved from cafe to libraries]

> For example, on a Unix system, /usr/lib/libcurl.so would be
> treated something like this:

>   (Just ["/","usr","lib"], "libcurl", Just "so")

Isn't this a SMOP, writing functions:

  dirname  :: FilePath -> String  -- or FilePath?
  basename :: FilePath -> String
  suffix   :: FilePath -> String

They would probably be useful enough (and, as you point out, slightly
tricky to get exactly right) to warrant standardization and
inclusion. 

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants