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




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


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


ConT Name