Skip to content

Commit

Permalink
Merge pull request #130 from ppedrot/module-expr-type-gadt
Browse files Browse the repository at this point in the history
Adapt w.r.t. coq/coq#19943.
  • Loading branch information
SkySkimmer authored Dec 19, 2024
2 parents 992c3a5 + 210a25d commit 32609ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/declare_translation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
debug_string [`Module] "--> declare_module";
let open Declarations in
let mp = mb.mod_mp in
match mb.mod_expr, mb.mod_type with
match Declareops.mod_expr mb, mb.mod_type with
| Algebraic _, NoFunctor fields
| FullStruct, NoFunctor fields ->
let id = id_of_module_path mp in
Expand Down Expand Up @@ -299,7 +299,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
end
| (lab, SFBmodule mb') when
match mb'.mod_type with NoFunctor _ ->
(match mb'.mod_expr with FullStruct | Algebraic _ -> true | _ -> false)
(match Declareops.mod_expr mb' with FullStruct | Algebraic _ -> true | _ -> false)
| _ -> false
->
declare_module ~opaque_access ~continuation arity mb'
Expand Down

0 comments on commit 32609ca

Please sign in to comment.