buchhaltung-0.0.5: Automates most of your plain text accounting data entry in ledger format.

Safe HaskellNone
LanguageHaskell2010

Buchhaltung.Match

Contents

Synopsis

Documentation

type MatchT m Source #

Arguments

 = RWST (FullOptions FilePath) () (S.Set AccountName, Zipper Update) (ErrorT m)

R: temporaray dbacl path

W: Set of learned accounts

S: Zipper with all transaction that neede to be matched

match :: FullOptions FilePath -> Journal -> ErrorT IO () Source #

updateAccountName :: Update -> Maybe (Transaction, Transaction) Source #

Apply the first matching Todo

data Default Source #

Constructors

Default 

Fields

learn :: [(AccountName, N.NonEmpty (WithSource a))] -> MatchT IO () Source #

type Update = WithSource (Maybe AccountName) Source #

groupByAccount :: MonadReader (Options user Config env) m => Journal -> m (Maybe ([(AccountName, N.NonEmpty (WithSource ()))], N.NonEmpty (WithSource (Maybe a)))) Source #

Group all transactions with source into those that already have an account and those that starting with cTodoAccount

getAccountList :: Monad m => MatchT m [AccountName] Source #

dbacl arguments

dbaclProc :: String -> [String] Source #

learning

dbaclProcC :: [String] -> [String] Source #

classification