Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Bryan O'Sullivan <bos <at> serpentine.com>
Subject: ANN: FileManip 0.1, an expressive file manipulation library
Newsgroups: gmane.comp.lang.haskell.cafe
Date: Wednesday 2nd May 2007 06:24:10 UTC (over 10 years ago)
The FileManip package provides expressive functions and combinators for 
searching, matching, and manipulating files.

It provides three modules.

System.FilePath.Find lets you search a filesystem hierarchy efficiently:

   find always (extension ==? ".rb") >>= mapM_ remove

System.FilePath.GlobPattern lets you perform glob-style pattern 
matching, without going through a regexp engine:

   "foo.c" ~~ "*.c"
      ==> True

System.FilePath.Manip lets you rename files procedurally, edit files in 
place, or save old copies as backups:

   modifyWithBackup (<.> "bak")
                    (unlines . map (takeWhile (/= ',')) . lines)
                    "myPoorFile.csv"
 
CD: 4ms