Safe Haskell | None |
---|
- type Commodity = Key
- data CommodityInfo = CommodityInfo {
- _commSymbol :: !Text
- _commPrecision :: !Int
- _commSuffixed :: !Bool
- _commSeparated :: !Bool
- _commThousands :: !Bool
- _commDecimalComma :: !Bool
- _commNoMarket :: !Bool
- _commBuiltin :: !Bool
- _commKnown :: !Bool
- _commPrimary :: !Bool
- _commHistory :: !(IntMap (Map UTCTime Rational))
- class HasCommodityInfo t where
- commodityInfo :: Lens' t CommodityInfo
- commBuiltin :: Lens' t Bool
- commDecimalComma :: Lens' t Bool
- commHistory :: Lens' t (IntMap (Map UTCTime Rational))
- commKnown :: Lens' t Bool
- commNoMarket :: Lens' t Bool
- commPrecision :: Lens' t Int
- commPrimary :: Lens' t Bool
- commSeparated :: Lens' t Bool
- commSuffixed :: Lens' t Bool
- commSymbol :: Lens' t Text
- commThousands :: Lens' t Bool
- defaultCommodityInfo :: CommodityInfo
- data CommodityMap = CommodityMap {
- _commodities :: !(IntMap CommodityInfo)
- class HasCommodityMap t where
- commodityMap :: Lens' t CommodityMap
- commodities :: Lens' t (IntMap CommodityInfo)
- extendByDigits :: Int
Documentation
Commodities are simply indices into a commodity info map, which relates such commodities to the information known about them.
data CommodityInfo Source
All of the information known about a commodity.
CommodityInfo | |
|
class HasCommodityInfo t whereSource
commodityInfo :: Lens' t CommodityInfoSource
commBuiltin :: Lens' t BoolSource
commDecimalComma :: Lens' t BoolSource
commHistory :: Lens' t (IntMap (Map UTCTime Rational))Source
commKnown :: Lens' t BoolSource
commNoMarket :: Lens' t BoolSource
commPrecision :: Lens' t IntSource
commPrimary :: Lens' t BoolSource
commSeparated :: Lens' t BoolSource
commSuffixed :: Lens' t BoolSource
commSymbol :: Lens' t TextSource
commThousands :: Lens' t BoolSource
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.
class HasCommodityMap t whereSource