Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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 "-".
readFileOrStdinPortably' :: Maybe DynEncoding -> String -> IO Texthledger-lib Hledger.Utils.IO Like readFileOrStdinPortably, but take an optional converter.
readFilePortably :: FilePath -> IO Texthledger-lib Hledger.Utils.IO Read text from a file, converting any rn line endings to n,, using the system locale's text encoding, ignoring any utf8 BOM prefix (as seen in paypal's 2018 CSV, eg) if that encoding is utf8.
readFileStrictly :: FilePath -> IO Texthledger-lib Hledger.Utils.IO Like readFilePortably, but read all of the file before proceeding.