plutus-ledger-api-1.61.0.0: Interface to the Plutus ledger for the Cardano ledger.
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusCore.Executable.AstIO

Description

Reading and writing ASTs with various name types in flat format.

Synopsis

Documentation

loadPlcASTfromFlatFlat a ⇒ AstNameTypeInputIO (PlcProg a) Source #

Read and deserialise a Flat-encoded PIR/PLC AST

loadUplcASTfromFlatFlat ann ⇒ AstNameTypeInputIO (UplcProg ann) Source #

Read and deserialise a Flat-encoded UPLC AST

fromNamedDeBruijnUPLCUplcProgNDB ann → UplcProg ann Source #

Convert an untyped program with named de Bruijn indices to one with textual names.

toDeBruijnTermPLCPlcTerm ann → PlcTermDB ann Source #

Convert a typed term to one where the name type is de Bruijn indices.

toDeBruijnTermUPLCUplcTerm ann → UplcTermDB ann Source #

Convert an untyped term to one where the name type is de Bruijn indices.

toDeBruijnUPLCUplcProg ann → UplcProgDB ann Source #

Convert an untyped program to one where the name type is de Bruijn indices.

toDeBruijnTypePLC ∷ PlcType ann → PlcTypeDB ann Source #

Convert a type to one where the tyname type is de Bruijn indices.

toNamedDeBruijnUPLCUplcProg ann → UplcProgNDB ann Source #

Convert an untyped program to one where the name type is textual names with de Bruijn indices.