Expressive file and directory manipulation for Haskell.

Latest on Hackage:0.18

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed by Bryan O'Sullivan
Maintained by Thomas Hartman
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)

To build and install:

runhaskell Setup configure
runhaskell Setup build
runhaskell Setup install

To understand:

To contribute:

darcs get


Bryan O'Sullivan
Depends on 6 packages:
Used by 1 package:
comments powered byDisqus