Safe Haskell | Safe-Infered |
---|
The Penny balance report
- report :: TreeOpts -> PriceConverteds -> [[Chunk]]
- nullConvert :: [Box LibertyMeta] -> PriceConverteds
- converter :: (Commodity, DateTime) -> [PricePoint] -> [Box LibertyMeta] -> Exceptional Text PriceConverteds
- data BalanceOpts = BalanceOpts {}
- balanceReport :: (Runtime -> BalanceOpts) -> Report
- defaultOptions :: DefaultTimeZone -> Runtime -> BalanceOpts
- balanceAsIs :: BottomLine -> Text
Making reports
Use these functions if you are building a report from your own code and you are not using the Zinc parser.
report :: TreeOpts -> PriceConverteds -> [[Chunk]]Source
nullConvert :: [Box LibertyMeta] -> PriceConvertedsSource
Makes PriceConverteds where there is no target commodity.
converter :: (Commodity, DateTime) -> [PricePoint] -> [Box LibertyMeta] -> Exceptional Text PriceConvertedsSource
Makes PriceConverteds where commodities will have to be changed to a target commodity. This will fail if necessary price data is lacking.
Parsing reports
For use with the Zinc command line parser.
data BalanceOpts Source
balanceReport :: (Runtime -> BalanceOpts) -> ReportSource
balanceAsIs :: BottomLine -> TextSource