| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Generators.Hedgehog.TypedBuiltinGen
Description
This module defines the TypedBuiltinGen type and functions of this type.
Synopsis
- data TermWith term a = TermWith {
- _termWithTerm ∷ term
- _termWithValue ∷ a
- type TypedBuiltinGenT term m = ∀ a. TypeRep a → GenT m (TermWith term a)
- type TypedBuiltinGen term = TypedBuiltinGenT term Identity
- genLowerBytes ∷ Monad m ⇒ Range Int → GenT m ByteString
- genTypedBuiltinFail ∷ Monad m ⇒ TypedBuiltinGenT term m
- genTypedBuiltinDef ∷ (HasConstantIn DefaultUni term, Monad m) ⇒ TypedBuiltinGenT term m
Documentation
A term along with the corresponding Haskell value.
Constructors
| TermWith | |
Fields
| |
Instances
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.
type TypedBuiltinGen term = TypedBuiltinGenT term Identity Source #
TypedBuiltinGenT specified to Identity.
genLowerBytes ∷ Monad m ⇒ Range Int → GenT m ByteString Source #
Generate a UTF-8 lazy ByteString containing lower-case letters.
genTypedBuiltinFail ∷ Monad 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.