Parameter Via_kleisli_composition.Req

type ('a, 'index) t

The type held by the Indexed Monad Plus.

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

Lift a value into a t.

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

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

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

Combine two values of t into one.

val neutral : ('a, 'index) t

The neutral element of the t.