-
Notifications
You must be signed in to change notification settings - Fork 39
/
ser_names.mli
79 lines (57 loc) · 3.43 KB
/
ser_names.mli
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
(************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \VV/ **************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(* * (see LICENSE file for the text of the license) *)
(************************************************************************)
(************************************************************************)
(* Coq serialization API/Plugin *)
(* Copyright 2016-2019 MINES ParisTech -- Dual License LGPL 2.1 / GPL3+ *)
(* Written by: Emilio J. Gallego Arias *)
(************************************************************************)
(* Status: Very Experimental *)
(************************************************************************)
open Names
open Sexplib
module Id : sig
include SerType.SJHC with type t = Id.t
module Set : SerType.SJHC with type t = Id.Set.t
module Map : SerType.SJHC1 with type 'a t = 'a Id.Map.t
end
module Name : SerType.SJHC with type t = Name.t
module DirPath : SerType.SJHC with type t = DirPath.t
module DPmap : Ser_cMap.ExtS with type key = DirPath.t and type 'a t = 'a DPmap.t
module Label : SerType.SJHC with type t = Label.t
module MBId : SerType.SJHC with type t = MBId.t
module ModPath : SerType.SJHC with type t = ModPath.t
module MPmap : Ser_cMap.ExtS with type key = ModPath.t and type 'a t = 'a MPmap.t
module KerName : SerType.SJHC with type t = KerName.t
module KNmap : Ser_cMap.ExtS with type key = KerName.t and type 'a t = 'a KNmap.t
module Constant : SerType.SJHC with type t = Constant.t
module Cset_env : Ser_cSet.ExtS with type elt = Constant.t and type t = Cset_env.t
module Cmap : Ser_cMap.ExtS with type key = Constant.t and type 'a t = 'a Cmap.t
module Cmap_env : Ser_cMap.ExtS with type key = Constant.t and type 'a t = 'a Cmap_env.t
module MutInd : SerType.SJHC with type t = MutInd.t
module Mindmap : Ser_cMap.ExtS with type key = MutInd.t and type 'a t = 'a Mindmap.t
module Mindmap_env : Ser_cMap.ExtS with type key = MutInd.t and type 'a t = 'a Mindmap_env.t
module Indset_env : Ser_cSet.ExtS with type elt = inductive and type t = Indset_env.t
module Indmap_env : Ser_cMap.ExtS with type key = inductive and type 'a t = 'a Indmap_env.t
type 'a tableKey = 'a Names.tableKey
val tableKey_of_sexp : (Sexp.t -> 'a) -> Sexp.t -> 'a tableKey
val sexp_of_tableKey : ('a -> Sexp.t) -> 'a tableKey -> Sexp.t
type variable = Names.variable [@@deriving sexp, yojson, hash, compare]
type inductive = Names.inductive [@@deriving sexp, yojson, hash, compare]
type constructor = Names.constructor [@@deriving sexp, yojson, hash, compare]
module Projection : sig
include SerType.SJHC with type t = Projection.t
module Repr : sig
include SerType.SJHC with type t = Projection.Repr.t
end
end
module GlobRef : SerType.SJHC with type t = Names.GlobRef.t
type lident = Names.lident [@@deriving sexp,yojson,hash,compare]
type lname = Names.lname [@@deriving sexp,yojson,hash,compare]
type lstring = Names.lstring [@@deriving sexp,yojson,hash,compare]