hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.IncomestatementScreen

Synopsis

Documentation

isNew :: UIOpts -> Day -> Journal -> Maybe AccountName -> Screen Source #

Construct an income statement screen listing the appropriate set of accounts, with the appropriate one selected. Screen-specific arguments: the account to select if any.

isUpdate :: UIOpts -> Day -> Journal -> AccountsScreenState -> AccountsScreenState Source #

Update an income statement screen's state from these options, reporting date, and journal.

isDraw :: UIState -> [Widget Name] Source #

isHandle :: BrickEvent Name AppEvent -> EventM Name UIState () Source #