Module type Monad_plus.WITH_KLEISLI_COMPOSITION

Minimal definition using neutral, combine, return, compose_left_to_right.

type 'a t

The type held by the Monad_plus.

include Indexed_monad.WITH_RETURN_AND_KLEISLI_COMPOSITION with type ('a, 'index) t := 'a t
include Indexed_monad.WITH_RETURN with type ('a, 'index) t := 'a t
val return : 'a -> 'a t

Lift a value into a t.

include Indexed_bind.WITH_KLEISLI_COMPOSITION with type ('a, 'index) t := 'a t
val compose_left_to_right : ('a -> 'b t) -> ('b -> 'c t) -> 'a -> 'c t

Composing monadic functions using Kleisli Arrow (from left to right).

include Indexed_monad_plus.WITH_NEUTRAL_AND_COMBINE with type ('a, 'index) t := 'a t
val combine : 'a t -> 'a t -> 'a t

Combine two values of t into one.

val neutral : 'a t

The neutral element of the t.