sig
type ('l, 'r) t = Left of 'l | Right of 'r | Both of 'l * 'r
val _Left : 'a -> ('a, 'b) These.t
val _Right : 'a -> ('b, 'a) These.t
val _Both : 'a -> 'b -> ('a, 'b) These.t
module Make :
functor (S : Semigroup.S) ->
sig
type 'a t = (S.t, 'a) t
val bind : ('a -> 'b t) -> 'a t -> 'b t
val pure : 'a -> 'a t
val ap : ('a -> 'b) t -> (unit -> 'a t) -> 'b t
val map : ('a -> 'b) -> 'a t -> 'b t
val ( >|= ) : 'a t -> ('a -> 'b) -> 'b t
val replace : 'a -> 'b t -> 'a t
val void : 'a t -> unit t
val ap' : ('a -> 'b) t -> 'a t -> 'b t
val ( <*> ) : ('a -> 'b) t -> 'a t -> 'b t
val ( <~> ) : ('a -> 'b) t -> (unit -> 'a t) -> 'b t
val discard_left : 'a t -> (unit -> 'b t) -> 'b t
val discard_right : 'a t -> (unit -> 'b t) -> 'a t
val repeat : int -> 'a t -> 'a list t
val repeat_ : int -> 'a t -> unit t
val forever : 'a t -> 'b t
val ( >>= ) : 'a t -> ('a -> 'b t) -> 'b t
val join : 'a t t -> 'a t
val mcompose : ('b -> 'c t) -> ('a -> 'b t) -> 'a -> 'c t
end
val bimap :
('a -> 'b) -> ('c -> 'd) -> ('a, 'c) These.t -> ('b, 'd) These.t
val fold :
('a -> 'b) -> ('c -> 'b) -> ('a -> 'c -> 'b) -> ('a, 'c) These.t -> 'b
val swap : ('a, 'b) These.t -> ('b, 'a) These.t
val maybe_left : ('a, 'b) These.t -> 'a option
val maybe_right : ('a, 'b) These.t -> 'b option
val maybe_both : ('a, 'b) These.t -> ('a * 'b) option
end