The console-program package
This library provides an infrastructure to build command line programs. It provides the following features:
declare any number of "actions" (commands, or modes of operation, of the program);
declare options of the program;
collect options and actions from a configuration file and the command line, and execute the proper action.
It provides functionality similar to the "cmdargs" package. Main differences:
console-program does not use unsafePerformIO, and tries to give a more haskellish, referentially transparent interface;
it allows a full tree of "modes", instead of a list, so a command can have subcommands;
it parses a configuration file, in addition to the command line arguments.
Properties
| Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.2.0.1 |
|---|---|
| Dependencies | ansi-wl-pprint (0.5.*), base (4.*), containers (≥0.1 & <0.4), directory (1.0.*), fez-conf (1.0.*), parsec-extra (0.1.*), template-haskell, utf8-string (≥0.3.5 & <0.4), utility-ht (0.0.5.*) |
| License | BSD3 |
| Author | Arie Peterson |
| Maintainer | ariep@xs4all.nl |
| Category | System |
| Source repository | darcs get http://patch-tag.com/r/AriePeterson/console-program |
| Upload date | Mon Aug 16 18:22:07 UTC 2010 |
| Uploaded by | AriePeterson |
| Built on | ghc-6.12, ghc-7.0 |
Modules
Downloads
- console-program-0.2.0.1.tar.gz (Cabal source package)
- package description (included in the package)