Monad implementation which wraps ctx.
Passing context type.
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.
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 Monad 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.
Contains a
ctxand can be transformed into another one by some methods.