Skip to content

Commit c3914be

Browse files
committed
fix opam dep
1 parent 58af4e2 commit c3914be

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

coq-elpi.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
1515
depends: [
1616
"ocaml" {>= "4.09.0" }
1717
"stdlib-shims"
18-
"elpi" {>= "1.18.1" & < "1.19.0~"}
18+
"elpi" {>= "1.18.2" & < "1.19.0~"}
1919
"coq" {>= "8.19" & < "8.20~" }
2020
"dot-merlin-reader" {with-dev}
2121
"ocaml-lsp-server" {with-dev}

src/coq_elpi_builtins_synterp.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ let scope = let open Conv in let open API.AlgebraicData in declare {
5353

5454
let grafting = let open Conv in let open API.AlgebraicData in declare {
5555
ty = TyName "grafting";
56-
doc = "Specify if the clause has to be grafted before or after a named clause";
56+
doc = "Specify if the clause has to be grafted before, grafted after or replace a named clause";
5757
pp = (fun fmt _ -> Format.fprintf fmt "<todo>");
5858
constructors = [
5959
K("before","",A(id,N),
@@ -62,10 +62,13 @@ let grafting = let open Conv in let open API.AlgebraicData in declare {
6262
K("after","",A(id,N),
6363
B (fun x -> (`After,x)),
6464
M (fun ~ok ~ko -> function (`After,x) -> ok x | _ -> ko ()));
65+
K("replace","",A(id,N),
66+
B (fun x -> (`Replace,x)),
67+
M (fun ~ok ~ko -> function (`Replace,x) -> ok x | _ -> ko ()));
6568
]
6669
} |> CConv.(!<)
6770

68-
type clause = string option * ([ `After | `Before ] * string) option * API.Data.term
71+
type clause = string option * ([ `After | `Before | `Replace ] * string) option * API.Data.term
6972

7073
let clause = let open Conv in let open API.AlgebraicData in declare {
7174
ty = TyName "clause";

src/coq_elpi_builtins_synterp.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ val set_accumulate_to_db_synterp :
5252
val prop : Data.term Conversion.t
5353
val id : string Conversion.t
5454

55-
type clause = string option * ([ `After | `Before ] * string) option * Data.term
55+
type clause = string option * ([ `After | `Before | `Replace ] * string) option * Data.term
5656

5757
val clause : clause Conversion.t
5858

0 commit comments

Comments
 (0)