Module type Monad.Basic2

module type Basic2 = sig .. end
Multi parameter monad. The second parameter get unified across all the computation. This is used to encode monads working on a multi parameter data structure like (('a,'b result)).

type ('a, 'd) t 
val bind : ('a, 'd) t ->
('a -> ('b, 'd) t) -> ('b, 'd) t
val return : 'a -> ('a, 'b) t