fork of https://github.com/bos/filemanip that can look thru symlinks
Find a file
Bryan O'Sullivan 09544e1403 Strictify the fold.
--HG--
extra : convert_revision : 879510c3a41039e46f4cd117381470a82861d049
2007-06-24 16:59:43 +00:00
examples Add Glob module, update docs. 2007-06-24 16:30:41 +00:00
System/FilePath Strictify the fold. 2007-06-24 16:59:43 +00:00
COPYING.LIB Point to license file. 2007-05-01 05:57:14 +00:00
FileManip.cabal Bump version number. 2007-06-24 16:30:59 +00:00
README Add Glob module, update docs. 2007-06-24 16:30:41 +00:00
Setup.lhs Initial cut of filemanip library. 2007-04-30 04:49:33 +00:00

FileManip: expressive file manipulation
---------------------------------------

This package provides functions and combinators for searching,
matching, and manipulating files.

It provides four modules.

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

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

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

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

System.FilePath.Glob lets you do simple glob-style file name searches:

  namesMatching "*/*.c"  ==>  ["foo/bar.c"]

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"


To build and install:

  runhaskell Setup configure
  runhaskell Setup build
  runhaskell Setup install


To understand:

  http://darcs.serpentine.com/filemanip/dist/doc/html/FileManip/



To contribute:

  darcs get http://darcs.serpentine.com/filemanip


Contributors:

  Bryan O'Sullivan