plutus-core-1.67.0.0: Language library for Plutus Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Generators.Hedgehog.TypedBuiltinGen

Description

This module defines the TypedBuiltinGen type and functions of this type.

Synopsis

Documentation

data TermWith term a Source #

A term along with the corresponding Haskell value.

Constructors

TermWith 

Fields

Instances

Instances details
(PrettyBy config a, PrettyBy config term) ⇒ PrettyBy config (TermWith term a) Source # 
Instance details

Defined in PlutusCore.Generators.Hedgehog.TypedBuiltinGen

Methods

prettyBy ∷ config → TermWith term a → Doc ann Source #

prettyListBy ∷ config → [TermWith term a] → Doc ann Source #

Foldable (TermWith term) Source # 
Instance details

Defined in PlutusCore.Generators.Hedgehog.TypedBuiltinGen

Methods

foldMonoid m ⇒ TermWith term m → m Source #

foldMapMonoid m ⇒ (a → m) → TermWith term a → m Source #

foldMap'Monoid m ⇒ (a → m) → TermWith term a → m Source #

foldr ∷ (a → b → b) → b → TermWith term a → b Source #

foldr' ∷ (a → b → b) → b → TermWith term a → b Source #

foldl ∷ (b → a → b) → b → TermWith term a → b Source #

foldl' ∷ (b → a → b) → b → TermWith term a → b Source #

foldr1 ∷ (a → a → a) → TermWith term a → a Source #

foldl1 ∷ (a → a → a) → TermWith term a → a Source #

toListTermWith term a → [a] Source #

nullTermWith term a → Bool Source #

lengthTermWith term a → Int Source #

elemEq a ⇒ a → TermWith term a → Bool Source #

maximumOrd a ⇒ TermWith term a → a Source #

minimumOrd a ⇒ TermWith term a → a Source #

sumNum a ⇒ TermWith term a → a Source #

productNum a ⇒ TermWith term a → a Source #

Traversable (TermWith term) Source # 
Instance details

Defined in PlutusCore.Generators.Hedgehog.TypedBuiltinGen

Methods

traverseApplicative f ⇒ (a → f b) → TermWith term a → f (TermWith term b) Source #

sequenceAApplicative f ⇒ TermWith term (f a) → f (TermWith term a) Source #

mapMMonad m ⇒ (a → m b) → TermWith term a → m (TermWith term b) Source #

sequenceMonad m ⇒ TermWith term (m a) → m (TermWith term a) Source #

Functor (TermWith term) Source # 
Instance details

Defined in PlutusCore.Generators.Hedgehog.TypedBuiltinGen

Methods

fmap ∷ (a → b) → TermWith term a → TermWith term b Source #

(<$) ∷ a → TermWith term b → TermWith term a Source #

type TypedBuiltinGenT term m = ∀ a. TypeRep a → GenT m (TermWith term a) Source #

A function of this type generates values of built-in typed (see TypedBuiltin for the list of such types) and returns it along with the corresponding PLC value.

genLowerBytesMonad m ⇒ Range IntGenT m ByteString Source #

Generate a UTF-8 lazy ByteString containing lower-case letters.

genTypedBuiltinFailMonad m ⇒ TypedBuiltinGenT term m Source #

A built-ins generator that always fails.

genTypedBuiltinDef ∷ (HasConstantIn DefaultUni term, Monad m) ⇒ TypedBuiltinGenT term m Source #

A default built-ins generator.