Syntax.M
include Applicative.S
include Functor.S
type 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
Map over the given value.
val return : 'a -> 'a t
Inject the given value.
val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
Map a binary function over the given value.
val product : 'a t -> 'b t -> ('a * 'b) t
Combine the given values. See also map2.
map2
val join : 'a t t -> 'a t
Monadic join operator.
val bind : 'a t -> ('a -> 'b t) -> 'b t
Monadic bind operator.