hledger-0.2: A ledger-compatible text-based accounting tool.

Ledger.Types

Description

All the main data types, defined here to avoid import cycles. See the corresponding modules for documentation.

Synopsis

Documentation

data Side Source

Constructors

L 
R 

Instances

data Commodity Source

Constructors

Commodity 

Fields

symbol :: String

the commodity's symbol

side :: Side

should the symbol appear on the left or the right

spaced :: Bool

should there be a space between symbol and quantity

comma :: Bool

should thousands be comma-separated

precision :: Int

number of decimal places to display

data Amount Source

Constructors

Amount 

Fields

commodity :: Commodity
 
quantity :: Double
 
price :: Maybe MixedAmount

optional per-unit price for this amount at the time of entry

data ModifierEntry Source

a ledger modifier entry. Currently ignored.

data PeriodicEntry Source

a ledger periodic entry. Currently ignored.

data TimeLog Source

Constructors

TimeLog 

Instances