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

Transform.Lib

Description

Common UPLC term-construction helpers shared across the Transform.*.Spec test modules.

Variables are referred to by name: var "x" is an occurrence, lam "x" body a binder, and name "x" the bare Name. See Note [Names from strings].

Synopsis

Documentation

type T = Term Name DefaultUni DefaultFun () Source #

Convenient alias used throughout the test modules.

varStringT Source #

A Var occurrence of the variable with the given name. See Note [Names from strings]

lamStringTT Source #

A lambda binding the variable with the given name. See Note [Names from strings]

appTTT Source #

forceTT Source #

delayTT Source #

case_T → [T] → T Source #

constrWord64 → [T] → T Source #

A Constr term tagged with the given index.

sopTrueT Source #

True as a sum-of-products value, Constr 0 [] (the datatype encoding of Bool).

sopFalseT Source #

False as a sum-of-products value, Constr 1 [].

builtinTrueT Source #

True as the builtin bool constant.

builtinFalseT Source #

False as the builtin bool constant.

iteTTTT Source #

ifThenElse forced and applied to a condition and the two branches.

conIntegerT Source #

An Integer constant.

textStringT Source #

A Text constant from a literal.

nameStringName Source #

Build a Name from a String. See Note [Names from strings]