packages feed

console-program-0.4.1.0: console-program.cabal

name:            console-program
version:         0.4.1.0
cabal-Version:   >= 1.6
license:         BSD3
author:          Arie Peterson
maintainer:      ariep@xs4all.nl
category:        Console
synopsis:        Interpret the command line and settings in a config file as commands and options
description:
  This library provides a framework to build command line programs.
  .
  .
  The constructed program can have several \"commands\" that provide different modes of operation.
  Options can be declared to allow fine-tuning of the behaviour of the program.
  These options are read from the command line when running the program
  and from a simple configuration file.
  .
  .
  Additionally, there is an interactive mode that reads and executes commands from standard input.
  .
  .
  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.
category:        System,Console
build-type:      Simple
extra-source-files:
  CHANGELOG.md
  Examples/Simple.hs
  Examples/Full.hs

source-repository head
  type:     darcs
  location: http://hub.darcs.net/AriePeterson/console-program

library
  build-depends:
    base == 4.*,
    containers >= 0.1 && < 0.6,
    directory >= 1.0 && < 1.3,
    ansi-wl-pprint >= 0.5 && < 0.7,
    ansi-terminal >= 0.5 && < 0.7,
    haskeline == 0.7.*,
    transformers >= 0.2 && < 0.5,
    utility-ht == 0.0.*,
    split == 0.2.*,
    parsec == 3.1.*,
    parsec-extra == 0.1.*
  if !os(windows)
    build-depends:
      unix >= 2.7 && < 2.8
  exposed-modules:
    System.Console.Argument,
    System.Console.Command,
    System.Console.Program
  other-modules:
    System.Console.ConfigFile,
    System.Console.Internal
  hs-source-dirs:  src
  other-extensions:
    DeriveDataTypeable,
    ScopedTypeVariables