Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
splitReaderPrefix :: PrefixedFilePath -> (Maybe StorageFormat, FilePath)hledger-lib Hledger.Read If a filepath is prefixed by one of the reader names and a colon, split that off. Eg "csv:-" -> (Just "csv", "-"). These reader prefixes can be used to force a specific reader, overriding the file extension.
-
hledger-lib Hledger.Read No documentation available.
-
hledger-lib Hledger.Read.Common No documentation available.
-
hledger-lib Hledger.Read.Common No documentation available.
-
A reader for CSV (character-separated) data. This also reads a rules file to help interpret the CSV data.
-
hledger-lib Hledger.Read.CsvReader No documentation available.
module Hledger.Read.
JournalReader A reader for hledger's journal file format (http://hledger.org/hledger.html#the-journal-file). hledger's journal format is a compatible subset of c++ ledger's (http://ledger-cli.org/3.0/doc/ledger3.html#Journal-Format), so this reader should handle many ledger files as well. Example:
2012/3/24 gift expenses:gifts $10 assets:cash
Journal format supports the include directive which can read files in other formats, so the other file format readers need to be importable and invocable here. Some important parts of journal parsing are therefore kept in Hledger.Read.Common, to avoid import cycles.-
hledger-lib Hledger.Read.JournalReader findReader mformat mpath
Find the reader named by mformat, if provided. ("ssv" and "tsv" are recognised as alternate names for the csv reader, which also handles those formats.) Or, if a file path is provided, find the first reader that handles its file extension, if any. splitReaderPrefix :: PrefixedFilePath -> (Maybe StorageFormat, FilePath)hledger-lib Hledger.Read.JournalReader If a filepath is prefixed by one of the reader names and a colon, split that off. Eg "csv:-" -> (Just "csv", "-"). These reader prefixes can be used to force a specific reader, overriding the file extension.
tests_JournalReader :: TestTreehledger-lib Hledger.Read.JournalReader No documentation available.