penny-0.32.0.10: Extensible double-entry accounting system

Safe HaskellSafe-Inferred

Penny.Lincoln.Bits.Price

Synopsis

Documentation

newtype From Source

Constructors

From 

Fields

unFrom :: Commodity
 

Instances

newtype To Source

Constructors

To 

Fields

unTo :: Commodity
 

Instances

data Price Source

Instances

Eq Price 
Ord Price 
Show Price 
Equivalent Price

Two Price are equivalent if the From and To are equal and the CountPerUnit is equivalent.

newPrice :: From -> To -> CountPerUnit -> Maybe PriceSource

Succeeds only if From and To are different commodities.