Skip to content

Commit edf9a9e

Browse files
authored
Merge pull request #897 from ppedrot/environ-view-serlib
Adapt w.r.t. rocq-prover/rocq#20165.
2 parents e6890cf + fd1f6e9 commit edf9a9e

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

serlib/ser_environ.ml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,27 +63,24 @@ type mind_key =
6363
[%import: Environ.mind_key]
6464
[@@deriving sexp,yojson,hash,compare]
6565

66-
module Globals = struct
67-
68-
module PierceSpec = struct
69-
type t = Environ.Globals.t
70-
type _t = [%import: Environ.Globals.view]
71-
[@@deriving sexp,yojson,hash,compare]
72-
end
73-
include SerType.Pierce(PierceSpec)
66+
module InternalEnv =
67+
struct
68+
type _t =
69+
[%import: Environ.Internal.View.t]
70+
[@@deriving sexp_of]
71+
72+
let of_t = Environ.Internal.View.view
7473
end
7574

76-
type env =
77-
[%import: Environ.env]
78-
[@@deriving sexp_of]
75+
type env = Environ.env
7976

8077
let env_of_sexp = Serlib_base.opaque_of_sexp ~typ:"Environ.env"
8178

8279
let abstract_env = ref false
8380
let sexp_of_env env =
8481
if !abstract_env
8582
then Serlib_base.sexp_of_opaque ~typ:"Environ.env" env
86-
else sexp_of_env env
83+
else InternalEnv.sexp_of__t (InternalEnv.of_t env)
8784

8885
type ('constr, 'term) punsafe_judgment =
8986
[%import: ('constr, 'term) Environ.punsafe_judgment]

0 commit comments

Comments
 (0)