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

PlutusCore.Compiler

Synopsis

Documentation

compileTerm :: (Compiling m uni fun name a, MonadReader (CompilationOpts name fun a) m) => Term tyname name uni fun a -> m (Term name uni fun a) #

Compile a PLC term to UPLC, and optimize it.

compileProgram :: (Compiling m uni fun name a, MonadReader (CompilationOpts name fun a) m) => Program tyname name uni fun a -> m (Program name uni fun a) #

Compile a PLC program to UPLC, and optimize it.

compileProgramWithTrace :: (Compiling m uni fun name a, MonadReader (CompilationOpts name fun a) m) => Program tyname name uni fun a -> m (Program name uni fun a, SimplifierTrace name uni fun a) #

Compile a PLC program to UPLC, and optimize it. This includes the compilation trace in the result.