hledger-lib
Safe HaskellNone
LanguageGHC2021

Hledger.Write.Ledger

Description

Helpers for Ledger-compatible output.

Synopsis

Documentation

showTransactionLedger :: Transaction -> Text Source #

Like showTransaction, but renders cost basis using Ledger-style lot syntax ({COST} DATE) instead of hledger consolidated syntax.

ledgerItemRenderer :: ItemRenderer Source #

An item renderer for Ledger output (print --export -O ledger): like the journal one, but transactions use Ledger lot syntax, and directives which hledger accepts but Ledger (detectably) does not are commented out, with an explanatory comment.