cmdtheline: Declarative command-line option parsing and documentation library.
CmdTheLine aims to remove tedium from the definition of command-line programs, producing usage, help and man pages with little effort.
The inspiration was found in Daniel Bunzli's http://erratique.ch/software/cmdliner library.
CmdTheLine uses applicative functors to provide a declarative, compositional mechanism for defining command-line programs by lifting regular Haskell functions over argument parsers.
Suggestions, comments, and bug reports are appreciated. Please see the bug and issue tracker at http://github.com/eli-frey/cmdtheline.
Changes since 0.1:
More type safety: Types in CmdTheLine.Arg have been made more explicit to disalow unwanted behavior. Positional argument information and optional argument information are distinguished from each other. As well
Args must be transformed intoTermbefore use, as some operations make since to perform onArgbut not onTerm.ArgVal has only one method:
parserandpphave been fused into a tuple, so that instantiation ofArgValcan be simplified for all parties.Err is an instance of MonadIO: The
Errmonad now supports IO action.File and Directory path validation: Taking advantage of new
Errcapabilities, the library provides new functions for validatingStrings inside ofTerms as being valid/existent file/directory paths.
[Skip to Readme]
Modules
- System
- Console
- System.Console.CmdTheLine
- System.Console.CmdTheLine.Arg
- System.Console.CmdTheLine.ArgVal
- System.Console.CmdTheLine.Term
- System.Console.CmdTheLine.Util
- System.Console.CmdTheLine
- Console
Downloads
- cmdtheline-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.1, 0.2.0.0, 0.2.1, 0.2.1.1, 0.2.2, 0.2.3 |
|---|---|
| Dependencies | base (>=4.5 && <5), containers (>=0.4 && <0.5), directory (>=1.1), filepath (>=1.3 && <1.4), parsec (>=3.1 && <3.2), pretty (>=1.1 && <1.2), process (>=1.1), transformers (>=0.3 && <0.4) [details] |
| License | MIT |
| Author | Eli Frey |
| Maintainer | Eli Frey <eli.lee.frey gmail com> |
| Uploaded | by EliFrey at 2012-07-21T21:28:34Z |
| Category | Console |
| Home page | http://github.com/eli-frey/cmdtheline |
| Source repo | head: git clone git://github.com/eli-frey/cmdtheline.git |
| Distributions | |
| Reverse Dependencies | 7 direct, 11 indirect [details] |
| Downloads | 13684 total (25 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs not available [build log] Last success reported on 2015-05-26 [all 8 reports] |