@@ -50,7 +50,7 @@ let _ = Summary.declare_summary "smpl"
5050
5151let 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
5656let 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
7171type smpl_action =
7272 | CreateDb of string * smpl_db
@@ -142,7 +142,7 @@ let smpl_print_entry e =
142142
143143let 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
148148let 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
157157let 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
201201let 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