Module type Interfaces.Monad


module type Monad = Monad.S

include Monad.Infix
A monad is an abstraction of the concept of sequencing of computations. A value of type 'a monad represents a computation that returns a value of type 'a.
module Monad_infix: Monad.Infix  with type 'a monad = 'a monad
val bind : 'a monad -> ('a -> 'b monad) -> 'b monad
bind t f = t >>= f
val return : 'a -> 'a monad
return v returns the (trivial) computation that returns v.
val map : 'a monad -> f:('a -> 'b) -> 'b monad
map t ~f is t >>| f.
val join : 'a monad monad -> 'a monad
join t is t >>= (fun t' -> t').
val ignore : 'a monad -> unit monad
ignore t = map t ~f:(fun _ -> ()).