The console-program package
This library provides an infrastructure to build command line programs. It provides the following features:
declare any number of "commands" (modes of operation) of the program;
declare options of these commands;
collect options from a configuration file and the command line, and execute the proper command.
Examples of using this library may be found in the Examples directory in the package tarball.
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 commands, 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, 0.3.0.0, 0.3.0.1, 0.3.1.0 |
|---|---|
| Dependencies | ansi-terminal (0.5.*), ansi-wl-pprint (≥0.5 & <0.7), base (4.*), containers (≥0.1 & <0.6), directory (≥1.0 & <1.2), fez-conf (1.0.*), haskeline (0.7.*), parsec (3.1.*), parsec-extra (0.1.*), split (0.2.*), transformers (≥0.2 & <0.4), utility-ht (0.0.*) |
| 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 | Sat Nov 24 18:19:43 UTC 2012 |
| Uploaded by | AriePeterson |
| Build failure | ghc-7.6 (log) |
Modules
- System
- Console
- System.Console.Argument
- System.Console.Command
- System.Console.Program
- Console
Downloads
- console-program-0.3.1.0.tar.gz (Cabal source package)
- package description (included in the package)