aboutsummaryrefslogtreecommitdiff
path: root/interp
diff options
context:
space:
mode:
authorGaëtan Gilbert2018-11-21 20:00:46 +0100
committerGaëtan Gilbert2018-11-23 13:21:31 +0100
commit74038abdd41161a4c4b1eba5dbbd83f5c0301bf3 (patch)
treef1932098c3b1320ebf8629c2b22f9437608e6fcf /interp
parent99d129b8e4e7fcde8c848520463c4e8c7d8bdc11 (diff)
s/let _ =/let () =/ in some places (mostly goptions related)
Diffstat (limited to 'interp')
-rw-r--r--interp/constrexpr_ops.ml14
-rw-r--r--interp/constrextern.ml2
2 files changed, 8 insertions, 8 deletions
diff --git a/interp/constrexpr_ops.ml b/interp/constrexpr_ops.ml
index d5f0b7bff6..07ed7825ff 100644
--- a/interp/constrexpr_ops.ml
+++ b/interp/constrexpr_ops.ml
@@ -605,13 +605,13 @@ let rec coerce_to_cases_pattern_expr c = CAst.map_with_loc (fun ?loc -> function
(str "This expression should be coercible to a pattern.")) c
let asymmetric_patterns = ref (false)
-let _ = Goptions.declare_bool_option {
- Goptions.optdepr = false;
- Goptions.optname = "no parameters in constructors";
- Goptions.optkey = ["Asymmetric";"Patterns"];
- Goptions.optread = (fun () -> !asymmetric_patterns);
- Goptions.optwrite = (fun a -> asymmetric_patterns:=a);
-}
+let () = Goptions.(declare_bool_option {
+ optdepr = false;
+ optname = "no parameters in constructors";
+ optkey = ["Asymmetric";"Patterns"];
+ optread = (fun () -> !asymmetric_patterns);
+ optwrite = (fun a -> asymmetric_patterns:=a);
+})
(** Local universe and constraint declarations. *)
diff --git a/interp/constrextern.ml b/interp/constrextern.ml
index 838ef40545..8fc2c3de41 100644
--- a/interp/constrextern.ml
+++ b/interp/constrextern.ml
@@ -195,7 +195,7 @@ let without_specific_symbols l =
(* Set Record Printing flag *)
let record_print = ref true
-let _ =
+let () =
let open Goptions in
declare_bool_option
{ optdepr = false;