aboutsummaryrefslogtreecommitdiffhomepage
path: root/checker/univ.ml
diff options
context:
space:
mode:
authorGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-12-17 20:22:37 +0100
committerGravatar Matthieu Sozeau <matthieu.sozeau@inria.fr>2014-12-17 20:24:23 +0100
commit7ebe6117789ac3c0d31c8a6ed918fce71b6d2e4b (patch)
tree2eb3095e1f80082cde506c286c280ca412eebdca /checker/univ.ml
parent6b2ec938010c50dae3ec6c87ff8ea7f2a4012b92 (diff)
checker: Change in library on disk values, now using context_sets instead of
constraints only.
Diffstat (limited to 'checker/univ.ml')
-rw-r--r--checker/univ.ml11
1 files changed, 10 insertions, 1 deletions
diff --git a/checker/univ.ml b/checker/univ.ml
index 323a373ec..cb530149b 100644
--- a/checker/univ.ml
+++ b/checker/univ.ml
@@ -379,7 +379,8 @@ module Level = struct
end
-(** Level maps *)
+(** Level sets and maps *)
+module LSet = Set.Make (Level)
module LMap = Map.Make (Level)
type 'a universe_map = 'a LMap.t
@@ -1297,6 +1298,14 @@ end
type universe_context = UContext.t
+module ContextSet =
+struct
+ type t = LSet.t constrained
+ let empty = LSet.empty, Constraint.empty
+ let constraints (_, cst) = cst
+end
+type universe_context_set = ContextSet.t
+
(** Substitutions. *)
let is_empty_subst = LMap.is_empty