diff options
| author | Gaëtan Gilbert | 2017-10-16 13:53:05 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2017-10-16 13:53:05 +0200 |
| commit | 82134deb1207e8954fe4e46d627d5f587101e2e8 (patch) | |
| tree | 224f48705bd1c8f28511c2e99a4a3a43e2804b28 /kernel/names.ml | |
| parent | d7d414ee56f2ace81097d3ce72e7db53edeaeb0c (diff) | |
Use type nonrec in some functor arguments.
Diffstat (limited to 'kernel/names.ml')
| -rw-r--r-- | kernel/names.ml | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/names.ml b/kernel/names.ml index e524f4258d..cb27104d15 100644 --- a/kernel/names.ml +++ b/kernel/names.ml @@ -113,8 +113,7 @@ struct module Self_Hashcons = struct - type _t = t - type t = _t + type nonrec t = t type u = Id.t -> Id.t let hashcons hident = function | Name id -> Name (hident id) @@ -236,8 +235,7 @@ struct module Self_Hashcons = struct - type _t = t - type t = _t + type nonrec t = t type u = (Id.t -> Id.t) * (DirPath.t -> DirPath.t) let hashcons (hid,hdir) (n,s,dir) = (n,hid s,hdir dir) let eq ((n1,s1,dir1) as x) ((n2,s2,dir2) as y) = @@ -869,8 +867,7 @@ struct module Self_Hashcons = struct - type _t = t - type t = _t + type nonrec t = t type u = Constant.t -> Constant.t let hashcons hc (c,b) = (hc c,b) let eq ((c,b) as x) ((c',b') as y) = |
