morley-1.7.0: Developer tools for the Michelson Language
Safe HaskellNone
LanguageHaskell2010

Util.Test.Arbitrary

Synopsis

Documentation

runGen :: Int -> Gen a -> a Source #

Run given generator deterministically.

Orphan instances

Arbitrary T Source # 
Instance details

Methods

arbitrary :: Gen T #

shrink :: T -> [T] #

Arbitrary ParameterType Source # 
Instance details

Arbitrary Type Source # 
Instance details

Methods

arbitrary :: Gen Type #

shrink :: Type -> [Type] #

Arbitrary StackTypePattern Source # 
Instance details

Arbitrary TyVar Source # 
Instance details

Methods

arbitrary :: Gen TyVar #

shrink :: TyVar -> [TyVar] #

Arbitrary Var Source # 
Instance details

Methods

arbitrary :: Gen Var #

shrink :: Var -> [Var] #

Arbitrary EntriesOrder Source # 
Instance details

Arbitrary InstrCallStack Source # 
Instance details

Arbitrary LetName Source # 
Instance details

Arbitrary SrcPos Source # 
Instance details

Arbitrary Pos Source # 
Instance details

Methods

arbitrary :: Gen Pos #

shrink :: Pos -> [Pos] #

Arbitrary InternalByteString Source # 
Instance details

Arbitrary ExpandedOp Source # 
Instance details

Arbitrary ExpandedExtInstr Source # 
Instance details

ToADTArbitrary T Source # 
Instance details

ToADTArbitrary ParameterType Source # 
Instance details

ToADTArbitrary Type Source # 
Instance details

ToADTArbitrary InstrCallStack Source # 
Instance details

ToADTArbitrary LetName Source # 
Instance details

ToADTArbitrary SrcPos Source # 
Instance details

ToADTArbitrary Pos Source # 
Instance details

ToADTArbitrary Mutez Source # 
Instance details

ToADTArbitrary ExpandedOp Source # 
Instance details

Arbitrary op => Arbitrary (Contract' op) Source # 
Instance details

Methods

arbitrary :: Gen (Contract' op) #

shrink :: Contract' op -> [Contract' op] #

Arbitrary op => Arbitrary (Elt op) Source # 
Instance details

Methods

arbitrary :: Gen (Elt op) #

shrink :: Elt op -> [Elt op] #

Arbitrary op => Arbitrary (Value' op) Source # 
Instance details

Methods

arbitrary :: Gen (Value' op) #

shrink :: Value' op -> [Value' op] #

(Arbitrary op, Arbitrary (ExtInstrAbstract op)) => Arbitrary (InstrAbstract op) Source # 
Instance details

(Arbitrary op, ToADTArbitrary op) => ToADTArbitrary (Contract' op) Source # 
Instance details

(Arbitrary op, ToADTArbitrary op) => ToADTArbitrary (Elt op) Source # 
Instance details

(Arbitrary op, ToADTArbitrary op) => ToADTArbitrary (Value' op) Source # 
Instance details

(Arbitrary op, ToADTArbitrary op, Arbitrary (ExtInstrAbstract op)) => ToADTArbitrary (InstrAbstract op) Source # 
Instance details

Arbitrary (Annotation tag) Source # 
Instance details

Methods

arbitrary :: Gen (Annotation tag) #

shrink :: Annotation tag -> [Annotation tag] #

ToADTArbitrary (Annotation tag) Source # 
Instance details