The FileManipCompat package

[Tags: bsd3, library]

A Haskell library for working with files and directories. Includes code for pattern matching, finding files, modifying file contents, and more.


[Skip to ReadMe]

Properties

Versions0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18
Change logNone available
Dependenciesbase (<5), bytestring, directory, extensible-exceptions, filepath, mtl, unix-compat [details]
LicenseBSD3
AuthorBryan O'Sullivan <bos@serpentine.com>
MaintainerThomas Hartman <thomashartman1@gmail.com>
CategorySystem
Home pagehttp://patch-tag.com/tphyahoo/r/tphyahoo/FileManipCompat
UploadedMon Oct 26 20:45:07 UTC 2009 by ThomasHartman
DistributionsNixOS:0.18
Downloads2019 total (76 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefault
base4Choose the even newer, even smaller, split-up base package.Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for FileManipCompat-0.11

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