This module defines the do_monad behaviour.
Required callback functions: bind/2, do/2, then/2, lift/1, liftm/2.
either(A, B) = {error, A} | {ok, B}
fn(A) = fun(() -> A)
fn(A, B) = fun((A) -> B)
maybe(A) = {just, A} | nothing
monad(A) = [A] | either(term(), A) | maybe(A)
do/2 | |
lift/2 | |
liftm/2 | |
liftmz/2 | |
then/2 |
Generated by EDoc