|
|
|
| Description |
| Common utilities for hledger data readers, such as the context (state)
that is kept while parsing a journal.
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| A hledger data reader is a triple of format name, format-detecting predicate, and a parser to Journal.
| | Constructors | | Reader | | | rFormat :: String | | | rDetector :: FilePath -> String -> Bool | | | rParser :: FilePath -> String -> ErrorT String IO Journal | |
|
|
|
|
|
| A JournalUpdate is some transformation of a Journal. It can do I/O
or raise an error.
|
|
|
| Given a JournalUpdate-generating parsec parser, file path and data string,
parse and post-process a Journal so that it's ready to use, or give an error.
|
|
|
| Some state kept while parsing a journal file.
| | Constructors | | Ctx | | | ctxYear :: !(Maybe Integer) | the default year most recently specified with Y
| | ctxCommod :: !(Maybe String) | I don't know
| | ctxAccount :: ![String] | the current stack of parent accounts specified by !account
|
|
| Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| expandPath :: MonadIO m => SourcePos -> FilePath -> m FilePath | Source |
|
|
| fileSuffix :: FilePath -> String | Source |
|
|
| Produced by Haddock version 2.6.1 |