Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readJournalFiles :: InputOpts -> [PrefixedFilePath] -> ExceptT String IO Journalhledger-lib Hledger.Read Read a Journal from each specified file path (using readJournalFile) and combine them into one; or return the first error message. Combining Journals means concatenating them, basically. The parse state resets at the start of each file, which means that directives & aliases do not affect subsequent sibling or parent files. They do affect included child files though. Also the final parse state saved in the Journal does span all files. Strict checks, if enabled, are temporarily deferred until all files are read, to ensure they see the whole journal, and/or to avoid redundant work. (Some checks, like assertions and ordereddates, might still be doing redundant work ?) Writing .latest files, if enabled, is also deferred till the end, and is done only if strict checks pass.
readJournalFiles' :: [PrefixedFilePath] -> IO Journalhledger-lib Hledger.Read An easy version of readJournalFiles' which assumes default options, and fails in the IO monad.
-
hledger-lib Hledger.Read No documentation available.
reader :: forall (m :: Type -> Type) . MonadIO m => SepFormat -> Reader mhledger-lib Hledger.Read.CsvReader No documentation available.
reader :: forall (m :: Type -> Type) . MonadIO m => Reader mhledger-lib Hledger.Read.JournalReader No documentation available.
-
hledger-lib Hledger.Read.RulesReader Read a Journal from the given CSV data (and filename, used for error messages), or return an error. Proceed as follows:
- Conversion rules are provided, or they are parsed from the specified rules file, or from the default rules file for the CSV data file. If rules parsing fails, or the required rules file does not exist, throw an error.
- Parse the CSV data using the rules, or throw an error.
- Convert the CSV records to hledger transactions using the rules.
- Return the transactions as a Journal.
reader :: forall (m :: Type -> Type) . MonadIO m => Reader mhledger-lib Hledger.Read.RulesReader No documentation available.
reader :: forall (m :: Type -> Type) . MonadIO m => Reader mhledger-lib Hledger.Read.TimeclockReader No documentation available.
reader :: forall (m :: Type -> Type) . MonadIO m => Reader mhledger-lib Hledger.Read.TimedotReader No documentation available.
readFileOrStdinPortably :: String -> IO Texthledger-lib Hledger.Utils.IO Like readFilePortably, but read from standard input if the path is "-".