gini-math-gen-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Gini.Math.AmountGen

Contents

Synopsis

Documentation

data RAmount #

This is a type that contains Integer representation of the full amount.

Constructors

RAmount Integer Amount 
Instances
Eq RAmount # 
Instance details

Defined in Gini.Math.AmountGen

Methods

(==) :: RAmount -> RAmount -> Bool #

(/=) :: RAmount -> RAmount -> Bool #

Show RAmount # 
Instance details

Defined in Gini.Math.AmountGen

Arbitrary RAmount # 
Instance details

Defined in Gini.Math.AmountGen

Methods

arbitrary :: Gen RAmount

shrink :: RAmount -> [RAmount]

data SAmount #

Same as above, but most of the amounts generated are small.

Constructors

SAmount Integer Amount 
Instances
Eq SAmount # 
Instance details

Defined in Gini.Math.AmountGen

Methods

(==) :: SAmount -> SAmount -> Bool #

(/=) :: SAmount -> SAmount -> Bool #

Show SAmount # 
Instance details

Defined in Gini.Math.AmountGen

Arbitrary SAmount # 
Instance details

Defined in Gini.Math.AmountGen

Methods

arbitrary :: Gen SAmount

shrink :: SAmount -> [SAmount]

genAmount :: Int -> Int -> Gen (Integer, Amount) #

Orphan instances

Arbitrary Word128 # 
Instance details

Methods

arbitrary :: Gen Word128

shrink :: Word128 -> [Word128]

Arbitrary Amount # 
Instance details

Methods

arbitrary :: Gen Amount

shrink :: Amount -> [Amount]

GenValid Amount # 
Instance details

Methods

genValid :: Gen Amount

shrinkValid :: Amount -> [Amount]