console-program-0.1.0.2: Interprets the command line and a config file as commands and options

System.Console.Options

Synopsis

Documentation

class Setting s whereSource

An instance s of Setting has as values partial sets of option assignments, as given by the user in a configuration file or command line options. Options s is the associated type of complete configurations, as the program peruses.

Associated Types

type Options s Source

Methods

set :: s -> Options s -> Options sSource

apply :: forall s. Setting s => [s] -> Options s -> Options sSource

create :: String -> String -> String -> [(String, Type)] -> Q [Dec]Source

create is a template haskell computation. Given names for the "options" type, the "settings" type and the "set" function, and a list of settings (pairs of their names and types), it creates those datatypes and function, and an instance of the Settings class.

data Type

Constructors

ConT Name