| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Buchhaltung.Import
- assertParseEqual' :: Either ParseError a -> String
- fillTxn :: (MonadError Msg m, MonadReader (Options User Config env) m) => T.Text -> ImportedEntry -> m FilledEntry
- importCat :: Maybe FilePath -> (T.Text -> CommonM env [ImportedEntry]) -> T.Text -> CommonM env Journal
- dateAmountSource :: ImportTag -> Transaction -> Transaction -> Ordering
- importWrite :: (T.Text -> CommonM env [ImportedEntry]) -> T.Text -> CommonM env ()
- importHandleWrite :: Importer env -> FullOptions (env, Maybe Version) -> Handle -> ErrorT IO ()
- importReadWrite :: Importer env -> FullOptions (env, Maybe Version) -> FilePath -> ErrorT IO ()
- writeJournal :: FilePath -> Journal -> IO ()
- testRaw :: Show a => t -> FilePath -> ([Char] -> a, Maybe (Handle -> IO ())) -> IO [Char]
Documentation
assertParseEqual' :: Either ParseError a -> String Source #
Arguments
| :: (MonadError Msg m, MonadReader (Options User Config env) m) | |
| => T.Text | current time string |
| -> ImportedEntry | |
| -> m FilledEntry |
convert a batch of importedEntries to Ledger Transactions
Arguments
| :: Maybe FilePath | File to check for already processed transactions |
| -> (T.Text -> CommonM env [ImportedEntry]) | |
| -> T.Text | |
| -> CommonM env Journal |
read entries from handle linewise, process and add to ledger
dateAmountSource :: ImportTag -> Transaction -> Transaction -> Ordering Source #
importWrite :: (T.Text -> CommonM env [ImportedEntry]) -> T.Text -> CommonM env () Source #
importHandleWrite :: Importer env -> FullOptions (env, Maybe Version) -> Handle -> ErrorT IO () Source #
importReadWrite :: Importer env -> FullOptions (env, Maybe Version) -> FilePath -> ErrorT IO () Source #