Skip to content

Commit

Permalink
Adapt to coq/coq#18038 (rewrite rules)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannl35133 committed Feb 5, 2024
1 parent fd1ea15 commit 6fefa83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coq_elpi_HOAS.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3492,6 +3492,7 @@ let rec in_elpi_module_item ~depth path state (name, item) =
[Gref (GlobRef.ConstRef (Constant.make2 path name))]
| SFBmind { mind_packets } ->
CList.init (Array.length mind_packets) (fun i -> Gref (GlobRef.IndRef (MutInd.make2 path name,i)))
| SFBrules _ -> nYI "rewrite rules"
| SFBmodule ({ mod_mp; mod_type = NoFunctor _ } as b) -> [Module (mod_mp,in_elpi_module ~depth state b) ]
| SFBmodule { mod_mp; mod_type = MoreFunctor _ as l } -> [Functor(mod_mp,functor_params l)]
| SFBmodtype { mod_mp; mod_type = NoFunctor _ } -> [ModuleType mod_mp]
Expand Down Expand Up @@ -3524,6 +3525,7 @@ let rec in_elpi_modty_item (name, item) = match item with
[ Label.to_string name ]
| Declarations.SFBmind _ ->
[ Label.to_string name ]
| Declarations.SFBrules _ -> nYI "rewrite rules"
| Declarations.SFBmodule mb -> in_elpi_modty mb
| Declarations.SFBmodtype _ -> []

Expand Down

0 comments on commit 6fefa83

Please sign in to comment.