Skip to content

Commit 54a001b

Browse files
committed
adapt to Coq 8.15
1 parent b739d0d commit 54a001b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
fetch-depth: 1
2828

2929
- run: opam repo add coq-released https://coq.inria.fr/opam/released
30+
- run: opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
31+
3032
- run: opam install . --deps-only --with-doc --with-test
3133

3234
- run: opam exec -- make -j 2 all

opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ build: [make "-j%{jobs}%"]
1212
install: [make "install"]
1313
depends: [
1414
"ocaml"
15-
"coq" { >= "8.14" }
15+
"coq" { >= "8.15" }
1616
]
1717
synopsis: "Smpl: An Extensible Tactic for Coq"
1818
description: """

src/smpl.mlg

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let _ = Summary.declare_summary "smpl"
5050

5151
let intern_smpl_create name db =
5252
try let _ = StringMap.find name (!smpl_dbs) in
53-
CErrors.user_err ~hdr:"Smpl" (str "Smpl Database " ++ str name ++ str " already exists.")
53+
CErrors.user_err (str "Smpl Database " ++ str name ++ str " already exists.")
5454
with Not_found -> smpl_dbs := StringMap.add name db (!smpl_dbs)
5555

5656
let rec insert e l =
@@ -66,7 +66,7 @@ let intern_smpl_add entry name =
6666
try let db = StringMap.find name (!smpl_dbs) in
6767
let db' = { db with queue = insert entry db.queue } in
6868
smpl_dbs := StringMap.add name db' (!smpl_dbs)
69-
with Not_found -> CErrors.user_err ~hdr:"Smpl" (str "Unknown Smpl Database " ++ str name ++ str ".")
69+
with Not_found -> CErrors.user_err (str "Unknown Smpl Database " ++ str name ++ str ".")
7070

7171
type smpl_action =
7272
| CreateDb of string * smpl_db
@@ -142,7 +142,7 @@ let smpl_print_entry e =
142142

143143
let smpl_db_exists db_name =
144144
try let db = StringMap.find db_name (!smpl_dbs) in db
145-
with Not_found -> CErrors.user_err ~hdr:"Smpl"
145+
with Not_found -> CErrors.user_err
146146
(str "Unknown Smpl Database " ++ str db_name ++ str ".")
147147

148148
let smpl_print db_name =
@@ -151,7 +151,7 @@ let smpl_print db_name =
151151
str " " ++ pr_progress db.progress_default ++ str ".") in
152152
let _ = Feedback.msg_info (str "Tactics in priority order:") in
153153
List.iter (smpl_print_entry) db.queue; ()
154-
with Not_found -> CErrors.user_err ~hdr:"Smpl"
154+
with Not_found -> CErrors.user_err
155155
(str "Unknown Smpl Database " ++ str db_name ++ str ".")
156156

157157
let smpl_print_dbs () =
@@ -192,16 +192,16 @@ let mk_smpl_tac db_name db args =
192192
let rec f l =
193193
match l with
194194
| e::l -> if bool_unopt e.require_progress db.progress_default then
195-
Tacticals.New.tclORELSE (smpl_tac_entry e args) (f l)
195+
Tacticals.tclORELSE (smpl_tac_entry e args) (f l)
196196
else
197-
Tacticals.New.tclORELSE0 (smpl_tac_entry e args) (f l)
198-
| _ -> Tacticals.New.tclFAIL 0 (str "smpl " ++ str db_name ++ str ": no tactic applies")
197+
Tacticals.tclORELSE0 (smpl_tac_entry e args) (f l)
198+
| _ -> Tacticals.tclFAIL 0 (str "smpl " ++ str db_name ++ str ": no tactic applies")
199199
in f db.queue
200200

201201
let smpl_tac db_name args =
202202
try let db = StringMap.find db_name (!smpl_dbs) in
203203
mk_smpl_tac db_name db args
204-
with Not_found -> Tacticals.New.tclFAIL 0 (str "smpl: db " ++ str db_name ++ str " not found")
204+
with Not_found -> Tacticals.tclFAIL 0 (str "smpl: db " ++ str db_name ++ str " not found")
205205

206206
(*** Syntax Extensions ***)
207207

0 commit comments

Comments
 (0)