penny-0.26.0.0: Extensible double-entry accounting system

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.

Constructors

Opts 

Fields

showZeroBalances :: ShowZeroBalances
 
target :: Target
 
dateTime :: DateTime
 
sortOrder :: SortOrder
 
sortBy :: SortBy
 
percentRpt :: Maybe RoundTo

If the user wants a percentage report, set this.

data Target Source

Is the target commodity determined by the user or automatically?

Constructors

AutoTarget 
ManualTarget To 

data SortBy Source

Constructors

SortByQty 
SortByName 

Instances

newtype RoundTo Source

Round to this many decimal places in the Percent report.

Constructors

RoundTo 

allOptSpecs :: [OptSpec (Opts -> 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.