Module Monad.Of_monad3Source

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

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

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

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