aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-09-22 18:36:10 +0200
committerPierre-Marie Pédrot2020-10-21 12:21:14 +0200
commit0a46af10ffc38726207bca952775102d48ad3b15 (patch)
tree03ca56bb87e50a5d33c29183f74058fc99302735 /kernel
parent0590764209dcb8540b5292aca38fe2df38b90ab9 (diff)
Rename the GlobRef comparison modules following the standard pattern.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/names.ml8
-rw-r--r--kernel/names.mli4
2 files changed, 6 insertions, 6 deletions
diff --git a/kernel/names.ml b/kernel/names.ml
index 5f2ecea5f0..f7658df355 100644
--- a/kernel/names.ml
+++ b/kernel/names.ml
@@ -991,7 +991,7 @@ module GlobRef = struct
(* By default, [global_reference] are ordered on their canonical part *)
- module Ordered = struct
+ module CanOrd = struct
open Constant.CanOrd
type t = GlobRefInternal.t
let compare gr1 gr2 =
@@ -1000,7 +1000,7 @@ module GlobRef = struct
let hash gr = GlobRefInternal.global_hash_gen hash ind_hash constructor_hash gr
end
- module Ordered_env = struct
+ module UserOrd = struct
open Constant.UserOrd
type t = GlobRefInternal.t
let compare gr1 gr2 =
@@ -1010,12 +1010,12 @@ module GlobRef = struct
let hash gr = GlobRefInternal.global_hash_gen hash ind_user_hash constructor_user_hash gr
end
- module Map = HMap.Make(Ordered)
+ module Map = HMap.Make(CanOrd)
module Set = Map.Set
(* Alternative sets and maps indexed by the user part of the kernel names *)
- module Map_env = HMap.Make(Ordered_env)
+ module Map_env = HMap.Make(UserOrd)
module Set_env = Map_env.Set
end
diff --git a/kernel/names.mli b/kernel/names.mli
index a0320fda43..76be6ca105 100644
--- a/kernel/names.mli
+++ b/kernel/names.mli
@@ -667,14 +667,14 @@ module GlobRef : sig
val equal : t -> t -> bool
- module Ordered : sig
+ module CanOrd : sig
type nonrec t = t
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
end
- module Ordered_env : sig
+ module UserOrd : sig
type nonrec t = t
val compare : t -> t -> int
val equal : t -> t -> bool