penny-lib-0.22.0.0: Deprecated - use penny package instead

Safe HaskellNone

Penny.Cabin.Balance.Convert.Parser

Description

Parsing options for the Convert report from the command line.

Synopsis

Documentation

data Opts Source

Default starting options for the Convert report. After considering what is parsed in from the command line and price data, a Convert.Opts will be generated.

data Target Source

Is the target commodity determined by the user or automatically?

Constructors

AutoTarget 
ManualTarget To 

data SortBy Source

Constructors

SortByQty 
SortByName 

Instances

allOptSpecs :: [OptSpec (Opts -> Exceptional String Opts)]Source

Do not be tempted to change the setup in this module so that the individual functions such as parseColor and parseBackground return parsers rather than OptSpec. Such an arrangement breaks the correct parsing of abbreviated long options.