sig
module Make :
functor (S : Semigroup.S) ->
sig
type _ 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 fail : S.t -> 'a t
val map_errors : (S.t -> S.t) -> 'a t -> 'a t
val fold : (S.t -> 'b) -> ('a -> 'b) -> 'a t -> 'b
val maybe_errors : 'a t -> S.t option
val maybe_result : 'a t -> 'a option
external to_either : 'a t -> (S.t, 'a) Either.t = "%identity"
external of_either : (S.t, 'a) Either.t -> 'a t = "%identity"
end
end