forked from rocq-archive/coq-serapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathser_mod_subst.ml
50 lines (41 loc) · 1.87 KB
/
ser_mod_subst.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016 *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
(************************************************************************)
(* Coq serialization API/Plugin *)
(* Copyright 2016-2019 MINES ParisTech *)
(************************************************************************)
(* Status: Experimental *)
(************************************************************************)
(* open Sexplib.Std *)
module Names = Ser_names
module OD = struct
type t = Mod_subst.delta_resolver
let name = "Mod_subst.delta_resolver"
end
module A_ = SerType.Opaque(OD)
type delta_resolver = A_.t
let sexp_of_delta_resolver = A_.sexp_of_t
let delta_resolver_of_sexp = A_.t_of_sexp
let delta_resolver_of_yojson = A_.of_yojson
let delta_resolver_to_yojson = A_.to_yojson
let hash_delta_resolver = A_.hash
let hash_fold_delta_resolver = A_.hash_fold_t
let compare_delta_resolver = A_.compare
module OS = struct
type t = Mod_subst.substitution
let name = "Mod_subst.substitution"
end
module B_ = SerType.Opaque(OS)
type substitution = B_.t
let sexp_of_substitution = B_.sexp_of_t
let substitution_of_sexp = B_.t_of_sexp
let substitution_of_yojson = B_.of_yojson
let substitution_to_yojson = B_.to_yojson
let hash_substitution = B_.hash
let hash_fold_substitution = B_.hash_fold_t
let compare_substitution = B_.compare