hledger-lib-0.14: Reusable types and utilities for the hledger accounting tool and financial apps in general.Source codeContentsIndex
Hledger.Read.Utils
Description
Utilities common to hledger journal readers.
Synopsis
juSequence :: [JournalUpdate] -> JournalUpdate
parseJournalWith :: GenParser Char JournalContext (JournalUpdate, JournalContext) -> FilePath -> String -> ErrorT String IO Journal
setYear :: Integer -> GenParser tok JournalContext ()
getYear :: GenParser tok JournalContext (Maybe Integer)
setCommodity :: Commodity -> GenParser tok JournalContext ()
getCommodity :: GenParser tok JournalContext (Maybe Commodity)
pushParentAccount :: String -> GenParser tok JournalContext ()
popParentAccount :: GenParser tok JournalContext ()
getParentAccount :: GenParser tok JournalContext String
expandPath :: MonadIO m => SourcePos -> FilePath -> m FilePath
fileSuffix :: FilePath -> String
Documentation
juSequence :: [JournalUpdate] -> JournalUpdateSource
parseJournalWith :: GenParser Char JournalContext (JournalUpdate, JournalContext) -> FilePath -> String -> ErrorT String IO JournalSource
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.
setYear :: Integer -> GenParser tok JournalContext ()Source
getYear :: GenParser tok JournalContext (Maybe Integer)Source
setCommodity :: Commodity -> GenParser tok JournalContext ()Source
getCommodity :: GenParser tok JournalContext (Maybe Commodity)Source
pushParentAccount :: String -> GenParser tok JournalContext ()Source
popParentAccount :: GenParser tok JournalContext ()Source
getParentAccount :: GenParser tok JournalContext StringSource
expandPath :: MonadIO m => SourcePos -> FilePath -> m FilePathSource
Convert a possibly relative, possibly tilde-containing file path to an absolute one. using the current directory from a parsec source position. ~username is not supported.
fileSuffix :: FilePath -> StringSource
Produced by Haddock version 2.6.1