|
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: 2007-05-02 06:24:10 GMT (2 years, 9 weeks, 2 days, 5 hours and 7 minutes 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"
|
|
|