hledger-lib-1.21: A reusable library providing the core functionality of hledger
Safe HaskellNone
LanguageHaskell2010

Hledger.Data.Commodity

Description

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.

Synopsis

Documentation

comm :: String -> CommoditySymbol Source #

Look up one of the sample commodities' symbol by name.

conversionRate :: CommoditySymbol -> CommoditySymbol -> Double Source #

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