1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889(************************************************************************)(* * 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 *)(* Written by: Emilio J. Gallego Arias *)(************************************************************************)(* Status: Very Experimental *)(************************************************************************)openPpx_hash_lib.Std.Hash.BuiltinopenPpx_compare_lib.BuiltinopenSexplib.StdmoduleONames=NamesmoduleCEphemeron=Ser_cEphemeronmoduleNames=Ser_namesmoduleConstr=Ser_constrmoduleDeclarations=Ser_declarationsmoduleEntries=Ser_entriesmoduleCooking=Ser_cookingmoduleUniv=Ser_univ(* Side_effects *)typecertificate={certif_struc:Declarations.structure_body;certif_univs:Univ.ContextSet.t;}[@@derivingsexp,yojson,hash,compare]typeside_effect={from_env:certificateCEphemeron.key;seff_constant:Names.Constant.t;seff_body:Declarations.constant_body;}[@@derivingsexp,yojson,hash,compare]moduleSeffOrd=structtypet=side_effect[@@derivingsexp,yojson,hash,compare]endmoduleSeffSet=Set.Make(SeffOrd)moduleSerSeffSet=Ser_cSet.Make(SeffSet)(SeffOrd)modulePC=struct(* t private_constants *)typet=Safe_typing.private_constantstype_t={seff:side_effectlist;elts:SerSeffSet.t}[@@derivingsexp,yojson,hash,compare]endmoduleB_=SerType.Pierce(PC)typeprivate_constants=Safe_typing.private_constantsletsexp_of_private_constants=B_.sexp_of_tletprivate_constants_of_sexp=B_.t_of_sexpletprivate_constants_of_yojson=B_.of_yojsonletprivate_constants_to_yojson=B_.to_yojsonlethash_private_constants=B_.hashlethash_fold_private_constants=B_.hash_fold_tletcompare_private_constants=B_.compare(*
type 'a effect_entry =
[%import: 'a Safe_typing.effect_entry]
[@@deriving sexp_of]
(* XXX: Typical GADT Problem *)
let _effect_entry_of_sexp (_f : Sexp.t -> 'a) (x : Sexp.t) : 'a effect_entry =
let open Sexp in
match x with
| Atom "PureEntry" ->
Obj__magic PureEntry
| Atom "EffectEntry" ->
Obj__magic EffectEntry
| _ ->
Sexplib.Conv_error.no_variant_match ()
*)typeglobal_declaration=[%import:Safe_typing.global_declaration][@@derivingsexp]