plutus-tx-plugin-1.59.0.0: The Plutus Tx compiler and GHC plugin
Safe HaskellSafe-Inferred
LanguageHaskell2010

PlutusTx.Compiler.Trace

Synopsis

Documentation

traceCompilationL Source #

Arguments

∷ (MonadReader (CompileContext uni fun) m, MonadState CompileState m, MonadError (WithContext (Text, Maybe RealSrcSpan) e) m) 
Int

Context level

SDoc

The thing (expr, type, kind, etc.) being compiled

Maybe RealSrcSpan

Source location

→ m a

The compilation action

→ m a 

A combination of withContextM and traceCompilationStep.

withContextM emits a stack trace when the compilation fails, and can be turned on via `-fcontext-level=level`.

traceCompilationStep dumps the full compilation trace, and can be turned on via `-fdump-compilation-trace`.

traceCompilation Source #

Arguments

∷ (MonadReader (CompileContext uni fun) m, MonadState CompileState m, MonadError (WithContext (Text, Maybe RealSrcSpan) e) m) 
Int

Context level

SDoc

The thing (expr, type, kind, etc.) being compiled

→ m a

The compilation action

→ m a 

traceCompilationStep Source #

Arguments

∷ (MonadReader (CompileContext uni fun) m, MonadState CompileState m) 
SDoc

The thing (expr, type, kind, etc.) being compiled

→ m a

The compilation action

→ m a