Safe Haskell | None |
---|---|
Language | Haskell2010 |
New common report types, used by the BudgetReport for now, perhaps all reports later.
Synopsis
- type Percentage = Decimal
- type Change = MixedAmount
- type Balance = MixedAmount
- type Total = MixedAmount
- type Average = MixedAmount
- data PeriodicReport a = PeriodicReport ([DateSpan], [PeriodicReportRow a], PeriodicReportRow a)
- type PeriodicReportRow a = (AccountName, AccountName, Int, [a], a, a)
Documentation
type Percentage = Decimal Source #
= MixedAmount | A change in balance during a certain period. |
= MixedAmount | An ending balance as of some date. |
= MixedAmount | The sum of |
data PeriodicReport a Source #
A generic tabular report of some value, where each row corresponds to an account and each column is a date period. The column periods are usually consecutive subperiods formed by splitting the overall report period by some report interval (daily, weekly, etc.) Depending on the value type, this can be a report of balance changes, ending balances, budget performance, etc. Successor to MultiBalanceReport.
PeriodicReport ([DateSpan], [PeriodicReportRow a], PeriodicReportRow a) |
Instances
Show a => Show (PeriodicReport a) Source # | |
Defined in Hledger.Reports.ReportTypes showsPrec :: Int -> PeriodicReport a -> ShowS # show :: PeriodicReport a -> String # showList :: [PeriodicReport a] -> ShowS # |
type PeriodicReportRow a = (AccountName, AccountName, Int, [a], a, a) Source #