HKT key applied to MonadPlus.
Passing context type.
ReadonlyabortAborts the execution and return early.
ReadonlyaddBinds a new value wrapped by the monad.
ReadonlyaddBinds a new value wrapped by the monad, calculated from ctx by fn.
ReadonlyaddAppends a new value calculated from ctx by fn.
The new property key for context
The calculation.
A new CatT containing the value at the key.
ReadonlyaltStarts an alternate branches combinator CatPlusAltT.
ReadonlyassertAsserts the condition is satisfied. Otherwise, the computation will exit.
ReadonlyctxContained context. Altering an interior value must be abstained, or may occurs unsound behaviors.
ReadonlyfinishReduces the context into a value by fn.
ReadonlyfinishReduces the context into a value on M by fn.
ReadonlyloopRuns a looping computation while it returns Continue<S>.
An initial state.
A computation to run.
A new CatT with modified environment.
ReadonlymonadThe MonadPlus instance for M.
ReadonlyrunRuns the computation.
ReadonlyrunRuns the computation with the context.
ReadonlywhenRuns a computation if only cond is satisfied.
ReadonlywhileRuns a looping computation while cond returns true.
A combinator which contains a
ctxand can be transformed it into another one by its methods.