Module Monad.Make
Parameters
Signature
include Syntax with type 'a t := 'a X.t
module Let_syntax : sig ... endinclude S_without_syntax with type 'a t := 'a X.t
val all_unit : 'a X.t list -> 'a X.tLike
all, but ensures that every monadic value in the list produces a unit value, all of which are discarded rather than being collected into a list.
val all : 'a X.t list -> 'a X.tval ignore_m : 'a X.t -> 'a X.tignore_m tismap t ~f:(fun _ -> ()).ignore_mused to be calledignore, but we decided that was a bad name, because it shadowed the widely usedCaml.ignore. Some monads still dolet ignore = ignore_mfor historical reasons.
val return : 'a -> 'a X.treturn vreturns the (trivial) computation that returns v.
module Monad_infix : Infix with type 'a t := 'a X.t