Module Monad.Of_monad3

The same as S except the monad type has three arguments. The second and third are always just passed through.

Parameters

module Monad : S3
module M : sig ... end

Signature

val (>>=) : ('a, 'd, 'e) M.t -> ('a -> ('b, 'd, 'e) M.t) -> ('b, 'd, 'e) M.t
val (>>|) : ('a, 'd, 'e) M.t -> ('a -> 'b) -> ('b, 'd, 'e) M.t
module Let_syntax : sig ... end
module Monad_infix : sig ... end

Same as Infix, except the monad type has three arguments. The second and third are always just passed through.

val bind : ('a, 'd, 'e) M.t -> f:('a -> ('b, 'd, 'e) M.t) -> ('b, 'd, 'e) M.t
val return : 'a -> ('a, _, _) M.t
val map : ('a, 'd, 'e) M.t -> f:('a -> 'b) -> ('b, 'd, 'e) M.t
val join : (('a, 'd, 'e) M.t, 'd, 'e) M.t -> ('a, 'd, 'e) M.t
val ignore_m : (_, 'd, 'e) M.t -> (unit, 'd, 'e) M.t
val all : ('a, 'd, 'e) M.t list -> ('a list, 'd, 'e) M.t
val all_unit : (unit, 'd, 'e) M.t list -> (unit, 'd, 'e) M.t