hledger-0.7.0: A command-line (or curses or web-based) double-entry accounting tool.Source codeContentsIndex
Ledger.IO
Description
Utilities for doing I/O with ledger files.
Synopsis
myLedgerPath :: IO String
myTimelogPath :: IO String
myLedger :: IO Ledger
myTimelog :: IO Ledger
readLedger :: FilePath -> IO Ledger
readLedgerWithFilterSpec :: FilterSpec -> FilePath -> IO Ledger
rawLedgerFromString :: String -> IO RawLedger
filterAndCacheLedger :: FilterSpec -> String -> RawLedger -> Ledger
Documentation
myLedgerPath :: IO StringSource
Get the user's default ledger file path.
myTimelogPath :: IO StringSource
Get the user's default timelog file path.
myLedger :: IO LedgerSource
Read the user's default ledger file, or give an error.
myTimelog :: IO LedgerSource
Read the user's default timelog file, or give an error.
readLedger :: FilePath -> IO LedgerSource
Read a ledger from this file, with no filtering, or give an error.
readLedgerWithFilterSpec :: FilterSpec -> FilePath -> IO LedgerSource
Read a ledger from this file, filtering according to the filter spec., | or give an error.
rawLedgerFromString :: String -> IO RawLedgerSource
Read a RawLedger from the given string, using the current time as reference time, or give a parse error.
filterAndCacheLedger :: FilterSpec -> String -> RawLedger -> LedgerSource
Convert a RawLedger to a canonicalised, cached and filtered Ledger.
Produced by Haddock version 2.7.2