hledger-lib-0.9: Core types and utilities for working with hledger (or c++ ledger) data.

Ledger.IO

Description

Utilities for doing I/O with ledger files.

Synopsis

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.

journalFromString :: String -> IO JournalSource

Read a Journal from the given string, using the current time as reference time, or give a parse error.