Skip to content

Commit

Permalink
Harden a bit the plugin implementation.
Browse files Browse the repository at this point in the history
We check that the returned value of effectful calls is indeed unit.
  • Loading branch information
ppedrot committed Feb 13, 2024
1 parent 472705a commit c5bde2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/bignums_syntax.ml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ let declare_numeral_interpreter uid sc dir interp (patl,uninterp,b) =
pt_in_match = b }

(* Actually declares the interpreter for bigN *)
let _ =
let () =
Notation.declare_scope bigN_scope;
declare_numeral_interpreter "bignums.bigN" bigN_scope
(bigN_path, bigN_module)
Expand Down Expand Up @@ -244,7 +244,7 @@ let uninterp_bigZ (AnyGlobConstr rc) =
None

(* Actually declares the interpreter for bigZ *)
let _ =
let () =
Notation.declare_scope bigZ_scope;
declare_numeral_interpreter "bignums.bigZ" bigZ_scope
(bigZ_path, bigZ_module)
Expand All @@ -266,7 +266,7 @@ let uninterp_bigQ (AnyGlobConstr rc) =
with Non_closed -> None

(* Actually declares the interpreter for bigQ *)
let _ =
let () =
Notation.declare_scope bigQ_scope;
declare_numeral_interpreter "bignums.bigQ" bigQ_scope
(bigQ_path, bigQ_module)
Expand Down

0 comments on commit c5bde2b

Please sign in to comment.