Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
(>>=) :: (x -> Term s a) -> x -> Term s a Source #
Bind function used within do syntax.
Enables elegant usage of pmatch
and similar.
P.do { y <- x ; z }
is equivalent to x $ y -> z
.
import qualified Plutarch.Monadic as P f :: Term s (PTxInfo :--> PBuiltinList (PAsData PTxInInfo)) f = plam $ x -> P.do PTxInfo txInfoFields <- pmatch x pfromData $ pdhead # txInfoFields