Update README
This commit is contained in:
parent
497f1f11c5
commit
9a21d9a8dc
3 changed files with 27 additions and 51 deletions
50
README
50
README
|
@ -1,50 +0,0 @@
|
||||||
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
|
|
26
README.markdown
Normal file
26
README.markdown
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# filemanip: expressive file manipulation
|
||||||
|
|
||||||
|
This package provides functions and combinators for searching,
|
||||||
|
matching, and manipulating files.
|
||||||
|
|
||||||
|
|
||||||
|
# Get involved!
|
||||||
|
|
||||||
|
Please report bugs via the
|
||||||
|
[bitbucket issue tracker](http://bitbucket.org/bos/attoparsec/filemanip).
|
||||||
|
|
||||||
|
Master [Mercurial repository](http://bitbucket.org/bos/filemanip):
|
||||||
|
|
||||||
|
* `hg clone http://bitbucket.org/bos/filemanip`
|
||||||
|
|
||||||
|
There's also a [git mirror](http://github.com/bos/filemanip):
|
||||||
|
|
||||||
|
* `git clone git://github.com/bos/filemanip.git`
|
||||||
|
|
||||||
|
(You can create and contribute changes using either Mercurial or git.)
|
||||||
|
|
||||||
|
|
||||||
|
# Authors
|
||||||
|
|
||||||
|
This library is written and maintained by Bryan O'Sullivan,
|
||||||
|
<bos@serpentine.com>.
|
|
@ -12,7 +12,7 @@ Description: A Haskell library for working with files and directories.
|
||||||
Cabal-version: >= 1.6
|
Cabal-version: >= 1.6
|
||||||
Build-type: Simple
|
Build-type: Simple
|
||||||
|
|
||||||
Extra-Source-Files: README
|
Extra-Source-Files: README.markdown
|
||||||
|
|
||||||
Library
|
Library
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue