Safe Haskell | None |
---|---|
Language | Haskell2010 |
Various options to use when reading journal files. Similar to CliOptions.inputflags, simplifies the journal-reading functions.
Synopsis
- data InputOpts = InputOpts {}
- class HasInputOpts c where
- inputOpts :: Lens' c InputOpts
- aliases :: Lens' c [String]
- anon__ :: Lens' c Bool
- auto__ :: Lens' c Bool
- balancingopts :: Lens' c BalancingOpts
- forecast :: Lens' c (Maybe DateSpan)
- infer_equity :: Lens' c Bool
- ioDay :: Lens' c Day
- mformat :: Lens' c (Maybe StorageFormat)
- mrules_file :: Lens' c (Maybe FilePath)
- new__ :: Lens' c Bool
- new_save :: Lens' c Bool
- pivot :: Lens' c String
- reportspan :: Lens' c DateSpan
- strict :: Lens' c Bool
- definputopts :: InputOpts
- forecastPeriod :: InputOpts -> Journal -> Maybe DateSpan
Types and helpers for input options
InputOpts | |
|
Instances
class HasInputOpts c where Source #
inputOpts :: Lens' c InputOpts Source #
aliases :: Lens' c [String] Source #
anon__ :: Lens' c Bool Source #
auto__ :: Lens' c Bool Source #
balancingopts :: Lens' c BalancingOpts Source #
forecast :: Lens' c (Maybe DateSpan) Source #
infer_equity :: Lens' c Bool Source #
mformat :: Lens' c (Maybe StorageFormat) Source #
mrules_file :: Lens' c (Maybe FilePath) Source #
new__ :: Lens' c Bool Source #
new_save :: Lens' c Bool Source #
pivot :: Lens' c String Source #
reportspan :: Lens' c DateSpan Source #
Instances
forecastPeriod :: InputOpts -> Journal -> Maybe DateSpan Source #
Get the Maybe the DateSpan to generate forecast options from. This begins on: - the start date supplied to the `--forecast` argument, if present - otherwise, the later of - the report start date if specified with -b-pdate: - the day after the latest normal (non-periodic) transaction in the journal, if any - otherwise today. It ends on: - the end date supplied to the `--forecast` argument, if present - otherwise the report end date if specified with -e-pdate: - otherwise 180 days (6 months) from today.