FileManipCompat: Expressive file and directory manipulation for Haskell.

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
splitbase

Choose the new, split-up base package.

Enabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18
Dependencies base (<5), bytestring, directory, filepath, mtl, unix-compat [details]
License BSD-3-Clause
Author Bryan O'Sullivan <bos@serpentine.com>
Maintainer Thomas Hartman <thomashartman1@gmail.com>
Category System
Uploaded by ThomasHartman at 2011-04-28T23:23:35Z
Distributions
Reverse Dependencies 2 direct, 3 indirect [details]
Downloads 8590 total (35 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for FileManipCompat-0.18

[back to package description]
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