commodities-0.2.0: Library for working with commoditized amounts and price histories

Safe HaskellNone

Ledger.Commodity

Synopsis

Documentation

type Commodity = KeySource

Commodities are simply indices into a commodity info map, which relates such commodities to the information known about them.

defaultCommodityInfo :: CommodityInfoSource

Return a CommodityInfo with defaults selected for all fields. It is intended that at least one field of the result will be modified immediately.

data CommodityMap Source

A commodities map, relating commodity indices to information about those commodities.

Constructors

CommodityMap