Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Step
- data MaybeStep
- data MatchAlgo
- = Fuzzy
- | Substrings
- nextStep :: Journal -> DateFormat -> Either Text Text -> Step -> IO (Either Text MaybeStep)
- undo :: Step -> Either Text Step
- context :: Journal -> MatchAlgo -> DateFormat -> Text -> Step -> IO [Text]
- suggest :: Journal -> DateFormat -> Step -> IO (Maybe Text)
- accountsByFrequency :: Journal -> [AccountName]
Documentation
nextStep :: Journal -> DateFormat -> Either Text Text -> Step -> IO (Either Text MaybeStep) Source #
undo :: Step -> Either Text Step Source #
Reverses the last step.
Returns (Left errorMessage), if the step can't be reversed
suggest :: Journal -> DateFormat -> Step -> IO (Maybe Text) Source #
Suggest the initial text of the entry box for each step
For example, it suggests today for the date prompt
Helpers exported for easier testing
accountsByFrequency :: Journal -> [AccountName] Source #
All accounts occuring in the journal sorted in descending order of appearance.