Skip to content

Commit

Permalink
fix opam dep
Browse files Browse the repository at this point in the history
  • Loading branch information
gares committed Jan 26, 2024
1 parent 58af4e2 commit c3914be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coq-elpi.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ install: [ make "install" "COQBIN=%{bin}%/" "ELPIDIR=%{prefix}%/lib/elpi" ]
depends: [
"ocaml" {>= "4.09.0" }
"stdlib-shims"
"elpi" {>= "1.18.1" & < "1.19.0~"}
"elpi" {>= "1.18.2" & < "1.19.0~"}
"coq" {>= "8.19" & < "8.20~" }
"dot-merlin-reader" {with-dev}
"ocaml-lsp-server" {with-dev}
Expand Down
7 changes: 5 additions & 2 deletions src/coq_elpi_builtins_synterp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ let scope = let open Conv in let open API.AlgebraicData in declare {

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

type clause = string option * ([ `After | `Before ] * string) option * API.Data.term
type clause = string option * ([ `After | `Before | `Replace ] * string) option * API.Data.term

let clause = let open Conv in let open API.AlgebraicData in declare {
ty = TyName "clause";
Expand Down
2 changes: 1 addition & 1 deletion src/coq_elpi_builtins_synterp.mli
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ val set_accumulate_to_db_synterp :
val prop : Data.term Conversion.t
val id : string Conversion.t

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

val clause : clause Conversion.t

Expand Down

0 comments on commit c3914be

Please sign in to comment.