Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common helpers for making multi-section balance report commands like balancesheet, cashflow, and incomestatement.
- data CompoundBalanceCommandSpec = CompoundBalanceCommandSpec {
- cbcname :: String
- cbcaliases :: [String]
- cbchelp :: String
- cbctitle :: String
- cbcqueries :: [(String, Journal -> Query, Maybe NormalBalance)]
- cbctype :: BalanceType
- compoundBalanceCommandMode :: CompoundBalanceCommandSpec -> Mode RawOpts
- compoundBalanceCommand :: CompoundBalanceCommandSpec -> CliOpts -> Journal -> IO ()
Documentation
data CompoundBalanceCommandSpec Source #
Description of a compound balance report command, from which we generate the command's cmdargs mode and IO action. A compound balance report command shows one or more sections/subreports, each with its own title and subtotals row, in a certain order, plus a grand totals row if there's more than one section. Examples are the balancesheet, cashflow and incomestatement commands.
CompoundBalanceCommandSpec | |
|
compoundBalanceCommandMode :: CompoundBalanceCommandSpec -> Mode RawOpts Source #
Generate a cmdargs option-parsing mode from a compound balance command specification.
compoundBalanceCommand :: CompoundBalanceCommandSpec -> CliOpts -> Journal -> IO () Source #
Generate a runnable command from a compound balance command specification.