Module Monad.Make_based_on_bind_with_product

Extend a minimal monad based on bind with product.

Parameters

Signature

type 'a t = 'a M.t
val return : 'a -> 'a t
val flatten : 'a t t -> 'a t
val map : ('a -> 'b) -> 'a t -> 'b t
val bind : ('a -> 'b t) -> 'a t -> 'b t
val product : 'a t -> 'b t -> ('a * 'b) t
module Bool : sig ... end
module Option : sig ... end
module List : sig ... end
module Operators : sig ... end