X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fboolean.mli;h=28d6d84c5e6f8c494d19b00b1a1739560cd00387;hp=73af3c1086f4e904401c26c101a7cc740f0da0bc;hb=f3d9a505aa793e7db4f9528fca98e9b37b0511b0;hpb=90ce5857f6cad2ebc753fdbc8e37882a1ff47415 diff --git a/src/boolean.mli b/src/boolean.mli index 73af3c1..28d6d84 100644 --- a/src/boolean.mli +++ b/src/boolean.mli @@ -13,12 +13,6 @@ (* *) (***********************************************************************) -module type ATOM = -sig - include Hcons.S - include Common_sig.Printable with type t := t -end - type ('formula,'atom) expr = | False | True @@ -29,7 +23,10 @@ type ('formula,'atom) expr = (** View of the internal representation of a formula, used for pattern matching *) -module Make(A : ATOM) : +module Make(A : sig + include Hcons.S + include Common_sig.Printable with type t := t +end) : sig type t @@ -80,4 +77,7 @@ sig val fold : (t -> 'a -> 'a) -> t -> 'a -> 'a (** [fold f phi acc] folds [f] over the formula structure *) + val iter : (t -> unit) -> t -> unit + (** [iter f phi] iters [f] over the formula structure *) + end