CCFun.Monad
module X : sig ... end
type 'a t = X.t -> 'a
Definition of a monad in continuation-passing style.
val return : 'a -> 'a t
Monadic return.
return
val (>|=) : 'a t -> ('a -> 'b) -> 'b t
Monadic map.
map
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
Monadic bind.
bind