sig
val init : unit -> unit
type +'a t
type -'a u
val changeable :
?eq:('a -> 'a -> bool) -> 'a -> 'a Froc_sa.t * 'a Froc_sa.u
val return : 'a -> 'a Froc_sa.t
val fail : exn -> 'a Froc_sa.t
val bind :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t -> ('b -> 'a Froc_sa.t) -> 'a Froc_sa.t
val ( >>= ) : 'a Froc_sa.t -> ('a -> 'b Froc_sa.t) -> 'b Froc_sa.t
val blift :
?eq:('a -> 'a -> bool) -> 'b Froc_sa.t -> ('b -> 'a) -> 'a Froc_sa.t
val lift :
?eq:('a -> 'a -> bool) -> ('b -> 'a) -> 'b Froc_sa.t -> 'a Froc_sa.t
val catch :
?eq:('a -> 'a -> bool) ->
(unit -> 'a Froc_sa.t) -> (exn -> 'a Froc_sa.t) -> 'a Froc_sa.t
val catch_lift :
?eq:('a -> 'a -> bool) ->
(unit -> 'a Froc_sa.t) -> (exn -> 'a) -> 'a Froc_sa.t
val try_bind :
?eq:('a -> 'a -> bool) ->
(unit -> 'b Froc_sa.t) ->
('b -> 'a Froc_sa.t) -> (exn -> 'a Froc_sa.t) -> 'a Froc_sa.t
val try_bind_lift :
?eq:('a -> 'a -> bool) ->
(unit -> 'b Froc_sa.t) -> ('b -> 'a) -> (exn -> 'a) -> 'a Froc_sa.t
val read : 'a Froc_sa.t -> 'a
val write : 'a Froc_sa.u -> 'a -> unit
val write_exn : 'a Froc_sa.u -> exn -> unit
val propagate : unit -> unit
val memo :
?size:int ->
?hash:('a -> int) ->
?eq:('a -> 'a -> bool) -> unit -> ('a -> 'b) -> 'a -> 'b
val hash : 'a Froc_sa.t -> int
val bindN :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t list -> ('b list -> 'a Froc_sa.t) -> 'a Froc_sa.t
val liftN : ?eq:('a -> 'a -> bool) -> ('b list -> 'a) -> 'b t list -> 'a t
val liftN :
?eq:('a -> 'a -> bool) ->
('b list -> 'a) -> 'b Froc_sa.t list -> 'a Froc_sa.t
val bind2 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t -> ('b -> 'c -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift2 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t -> 'c Froc_sa.t -> ('b -> 'c -> 'a) -> 'a Froc_sa.t
val lift2 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'a) -> 'b Froc_sa.t -> 'c Froc_sa.t -> 'a Froc_sa.t
val bind3 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t -> ('b -> 'c -> 'd -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift3 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t -> 'd Froc_sa.t -> ('b -> 'c -> 'd -> 'a) -> 'a Froc_sa.t
val lift3 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'd -> 'a) ->
'b Froc_sa.t -> 'c Froc_sa.t -> 'd Froc_sa.t -> 'a Froc_sa.t
val bind4 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t -> ('b -> 'c -> 'd -> 'e -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift4 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t -> ('b -> 'c -> 'd -> 'e -> 'a) -> 'a Froc_sa.t
val lift4 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'd -> 'e -> 'a) ->
'b Froc_sa.t ->
'c Froc_sa.t -> 'd Froc_sa.t -> 'e Froc_sa.t -> 'a Froc_sa.t
val bind5 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t ->
('b -> 'c -> 'd -> 'e -> 'f -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift5 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t -> ('b -> 'c -> 'd -> 'e -> 'f -> 'a) -> 'a Froc_sa.t
val lift5 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'd -> 'e -> 'f -> 'a) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t -> 'e Froc_sa.t -> 'f Froc_sa.t -> 'a Froc_sa.t
val bind6 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t ->
'g Froc_sa.t ->
('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift6 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t ->
'g Froc_sa.t -> ('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'a) -> 'a Froc_sa.t
val lift6 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'a) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t -> 'f Froc_sa.t -> 'g Froc_sa.t -> 'a Froc_sa.t
val bind7 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t ->
'g Froc_sa.t ->
'h Froc_sa.t ->
('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'h -> 'a Froc_sa.t) -> 'a Froc_sa.t
val blift7 :
?eq:('a -> 'a -> bool) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t ->
'g Froc_sa.t ->
'h Froc_sa.t ->
('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'h -> 'a) -> 'a Froc_sa.t
val lift7 :
?eq:('a -> 'a -> bool) ->
('b -> 'c -> 'd -> 'e -> 'f -> 'g -> 'h -> 'a) ->
'b Froc_sa.t ->
'c Froc_sa.t ->
'd Froc_sa.t ->
'e Froc_sa.t ->
'f Froc_sa.t -> 'g Froc_sa.t -> 'h Froc_sa.t -> 'a Froc_sa.t
val set_debug : (string -> unit) -> unit
end