File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
1515depends: [
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}
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ let scope = let open Conv in let open API.AlgebraicData in declare {
5353
5454let 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
7073let clause = let open Conv in let open API.AlgebraicData in declare {
7174 ty = TyName " clause" ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ val set_accumulate_to_db_synterp :
5252val prop : Data .term Conversion .t
5353val 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
5757val clause : clause Conversion .t
5858
You can’t perform that action at this time.
0 commit comments