aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/dnet.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dnet.ml')
-rw-r--r--lib/dnet.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/dnet.ml b/lib/dnet.ml
index 0562cc40b..a9e1e97e3 100644
--- a/lib/dnet.ml
+++ b/lib/dnet.ml
@@ -169,13 +169,13 @@ struct
(* Sets with a neutral element for inter *)
module OSet (S:Set.S) = struct
type t = S.t option
- let union s1 s2 = match s1,s2 with
+ let union s1 s2 : t = match s1,s2 with
| (None, _ | _, None) -> None
| Some a, Some b -> Some (S.union a b)
- let inter s1 s2 = match s1,s2 with
+ let inter s1 s2 : t = match s1,s2 with
| (None, a | a, None) -> a
| Some a, Some b -> Some (S.inter a b)
- let is_empty = function
+ let is_empty : t -> bool = function
| None -> false
| Some s -> S.is_empty s
(* optimization hack: Not_found is catched in fold_pattern *)