The FileManip package

[ Tags: bsd3, deprecated, library, system ] [ Propose Tags ]
Deprecated. in favor of filemanip

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

[Skip to Readme]


Versions 0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.3.3,
Dependencies base, filepath, mtl, unix [details]
License LGPL
Author Bryan O'Sullivan <>
Maintainer Bryan O'Sullivan
Category System
Uploaded Sun Jun 24 17:03:01 UTC 2007 by BryanOSullivan
Distributions NixOS:
Downloads 3417 total (33 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for FileManip-0.2

[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)

To build and install:

  runhaskell Setup configure
  runhaskell Setup build
  runhaskell Setup install

To understand:

To contribute:

  darcs get


  Bryan O'Sullivan