diff options
Diffstat (limited to 'plugins/dp/dp.ml')
-rw-r--r-- | plugins/dp/dp.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/dp/dp.ml b/plugins/dp/dp.ml index b025cea64..837195e44 100644 --- a/plugins/dp/dp.ml +++ b/plugins/dp/dp.ml @@ -36,7 +36,7 @@ let set_trace b = trace := b let timeout = ref 10 let set_timeout n = timeout := n -let dp_timeout_obj = +let dp_timeout_obj : int -> obj = declare_object {(default_object "Dp_timeout") with cache_function = (fun (_,x) -> set_timeout x); @@ -44,7 +44,7 @@ let dp_timeout_obj = let dp_timeout x = Lib.add_anonymous_leaf (dp_timeout_obj x) -let dp_debug_obj = +let dp_debug_obj : bool -> obj = declare_object {(default_object "Dp_debug") with cache_function = (fun (_,x) -> set_debug x); @@ -52,7 +52,7 @@ let dp_debug_obj = let dp_debug x = Lib.add_anonymous_leaf (dp_debug_obj x) -let dp_trace_obj = +let dp_trace_obj : bool -> obj = declare_object {(default_object "Dp_trace") with cache_function = (fun (_,x) -> set_trace x); @@ -825,7 +825,7 @@ let prelude_files = ref ([] : string list) let set_prelude l = prelude_files := l -let dp_prelude_obj = +let dp_prelude_obj : string list -> obj = declare_object {(default_object "Dp_prelude") with cache_function = (fun (_,x) -> set_prelude x); @@ -1087,7 +1087,7 @@ let dp_hint l = in List.iter one_hint (List.map (fun qid -> qid, Nametab.global qid) l) -let dp_hint_obj = +let dp_hint_obj : reference list -> obj = declare_object {(default_object "Dp_hint") with cache_function = (fun (_,l) -> dp_hint l); @@ -1113,7 +1113,7 @@ let dp_predefined qid s = with NotFO -> msg_warning (str " ignored (not a first order declaration)") -let dp_predefined_obj = +let dp_predefined_obj : reference * string -> obj = declare_object {(default_object "Dp_predefined") with cache_function = (fun (_,(id,s)) -> dp_predefined id s); |