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

Hledger.Data.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.

myJournal :: IO JournalSource

Read the user's default journal file, or give an error.

myTimelog :: IO JournalSource

Read the user's default timelog file, or give an error.

readJournal :: FilePath -> IO JournalSource

Read a journal from this file, or throw an error.

journalFromString :: String -> IO JournalSource

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