Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
PlutusCore.Evaluation.Result
Description
This module defines a common type various evaluation machine use to return their results.
Synopsis
Documentation
data EvaluationResult a Source #
The parameterized type of results various evaluation engines return.
On the PLC side this becomes (via makeKnown
) either a call to Error
or
a value of the PLC counterpart of type a
.
Constructors
EvaluationSuccess !a | |
EvaluationFailure |
Instances
isEvaluationSuccess ∷ EvaluationResult a → Bool Source #
Check whether an EvaluationResult
is an EvaluationSuccess
.
isEvaluationFailure ∷ EvaluationResult a → Bool Source #
Check whether an EvaluationResult
is an EvaluationFailure
.