Safe Haskell | None |
---|---|
Language | Haskell2010 |
- assertParseEqual' :: Either ParseError a -> String
- fillTxn :: (MonadError Msg m, MonadReader (Options User Config env) m) => Text -> ImportedEntry -> m FilledEntry
- importCat :: Maybe FilePath -> (Text -> CommonM env [ImportedEntry]) -> Text -> CommonM env Journal
- dateAmountSource :: ImportTag -> Transaction -> Transaction -> Ordering
- importWrite :: (Text -> CommonM env [ImportedEntry]) -> 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 => p -> FilePath -> (String -> a, Maybe (Handle -> IO ())) -> IO String
Documentation
assertParseEqual' :: Either ParseError a -> String Source #
:: (MonadError Msg m, MonadReader (Options User Config env) m) | |
=> Text | current time string |
-> ImportedEntry | |
-> m FilledEntry |
convert a batch of importedEntries to Ledger Transactions
:: Maybe FilePath | File to check for already processed transactions |
-> (Text -> CommonM env [ImportedEntry]) | |
-> Text | |
-> CommonM env Journal |
read entries from handle linewise, process and add to ledger
dateAmountSource :: ImportTag -> Transaction -> Transaction -> Ordering Source #
importWrite :: (Text -> CommonM env [ImportedEntry]) -> 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 #