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



A Commodity is a symbol representing a currency or some other kind of thing we are tracking, and some display preferences that tell how to display Amounts of the commodity - is the symbol on the left or right, are thousands separated by comma, significant decimal places and so on.



comm :: String -> CommoditySource

Look up one of the hard-coded default commodities. For use in tests.

conversionRate :: Commodity -> Commodity -> DoubleSource

Find the conversion rate between two commodities. Currently returns 1.