Module Monad.Of_monad_indexedSource

The same as S except the monad type has three arguments. The second and third are composed across all computation.

Parameters

module Monad : S_indexed
module M : sig ... end

Signature

Sourceval (>>=) : ('a, 'i, 'j) M.t -> ('a -> ('b, 'j, 'k) M.t) -> ('b, 'i, 'k) M.t
Sourceval (>>|) : ('a, 'i, 'j) M.t -> ('a -> 'b) -> ('b, 'i, 'j) 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 composed across all computation.

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