Skip to content

Commit

Permalink
Adapt to coq/coq#18867 (inductive_sort_family doesn't exist)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Apr 4, 2024
1 parent 3eca445 commit 29fc39c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion template-coq/src/quoter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,12 @@ struct
in ps, acc
| _ -> [], acc
in
(* TODO quote the real squash data instead of approximating with a sort family *)
let kelim = match oib.Declarations.mind_squashed with
| None -> Sorts.InType
| Some _ -> Inductive.inductive_sort_family oib
| Some _ -> match oib.mind_arity with
| TemplateArity _ -> InType
| RegularArity s -> Sorts.family s.mind_sort
in
let sf = Q.quote_sort_family kelim in
(Q.quote_ident oib.mind_typename, indices, indsort, indty, sf,
Expand Down

0 comments on commit 29fc39c

Please sign in to comment.