aboutsummaryrefslogtreecommitdiff
path: root/kernel/univ.mli
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-06-18 12:04:42 +0200
committerPierre-Marie Pédrot2014-06-18 15:10:23 +0200
commit77839ae306380e99a8ceac0bf26ff86ec9159346 (patch)
treefb2634db286be45a23a57a990e05eed8e9e6597e /kernel/univ.mli
parent4c79604793ddf9c3e717d762518200b5e7db4f35 (diff)
Code factorization in LMap.
Diffstat (limited to 'kernel/univ.mli')
-rw-r--r--kernel/univ.mli20
1 files changed, 1 insertions, 19 deletions
diff --git a/kernel/univ.mli b/kernel/univ.mli
index a76cf9ea84..832da157e3 100644
--- a/kernel/univ.mli
+++ b/kernel/univ.mli
@@ -232,7 +232,7 @@ val univ_depends : universe -> universe -> bool
(** Polymorphic maps from universe levels to 'a *)
module LMap :
sig
- include Map.S with type key = universe_level
+ include CMap.ExtS with type key = universe_level and module Set := LSet
val union : 'a t -> 'a t -> 'a t
(** [union x y] favors the bindings in the first map. *)
@@ -244,24 +244,6 @@ sig
(** [subst_union x y] favors the bindings of the first map that are [Some],
otherwise takes y's bindings. *)
- val elements : 'a t -> (universe_level * 'a) list
- (** As an association list *)
-
- val of_list : (universe_level * 'a) list -> 'a t
- (** From an association list *)
-
- val of_set : universe_set -> 'a -> 'a t
- (** Associates the same value to all levels in the set *)
-
- val mem : universe_level -> 'a t -> bool
- (** Is there a binding for the level? *)
-
- val find_opt : universe_level -> 'a t -> 'a option
- (** Find the value associated to the level, if any *)
-
- val universes : 'a t -> universe_set
- (** The domain of the map *)
-
val pr : ('a -> Pp.std_ppcmds) -> 'a t -> Pp.std_ppcmds
(** Pretty-printing *)
end