forked from ocamllibs/stdcompat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstdcompat__lazy_s.mli.in
100 lines (85 loc) · 2.69 KB
/
stdcompat__lazy_s.mli.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module type S = sig
@BEGIN_FROM_4_08_0@
type 'a t = 'a CamlinternalLazy.t
@END_FROM_4_08_0@
@BEGIN_BEFORE_4_08_0@
type 'a t = 'a Stdcompat__init.lazy_t
@END_BEFORE_4_08_0@
(** @since 4.08.0: type 'a t = 'a CamlinternalLazy.t
*)
exception Undefined
(** Alias for {!Lazy.Undefined} *)
val map : ('a -> 'b) -> 'a t -> 'b t
(** @since 4.13.0: val map : ('a -> 'b) -> 'a t -> 'b t *)
val map_val : ('a -> 'b) -> 'a t -> 'b t
(** @since 4.13.0: val map_val : ('a -> 'b) -> 'a t -> 'b t *)
val is_val : 'a t -> bool
(** @since 4.00.0: val is_val : 'a t -> bool *)
val from_val : 'a -> 'a t
(** @since 4.00.0: val from_val : 'a -> 'a t *)
val from_fun : (unit -> 'a) -> 'a t
(** @since 4.00.0: val from_fun : (unit -> 'a) -> 'a t *)
@BEGIN_FROM_3_11_0@
external force : 'a t -> 'a = "%lazy_force"
@END_FROM_3_11_0@
@BEGIN_BEFORE_3_11_0@
val force : 'a t -> 'a
@END_BEFORE_3_11_0@
(** @since 3.11.0: external force : 'a t -> 'a = "%lazy_force"
@since 3.07.0: val force : 'a t -> 'a
*)
val force_val : 'a t -> 'a
(** Alias for {!Lazy.force_val} *)
@BEGIN_FROM_4_08_0@
val lazy_from_fun : (unit -> 'a) -> 'a t
@END_FROM_4_08_0@
@BEGIN_BEFORE_4_08_0@
@BEGIN_FROM_4_02_0@
val lazy_from_fun : (unit -> 'a) -> 'a t[@@ocaml.deprecated
"Use Lazy.from_fun instead."]
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val lazy_from_fun : (unit -> 'a) -> 'a t
@END_BEFORE_4_02_0@
@END_BEFORE_4_08_0@
(** @since 4.08.0: val lazy_from_fun : (unit -> 'a) -> 'a t
@since 4.02.0:
val lazy_from_fun : (unit -> 'a) -> 'a t[@@ocaml.deprecated
"Use Lazy.from_fun instead."]
@since 3.07.0: val lazy_from_fun : (unit -> 'a) -> 'a t
*)
@BEGIN_FROM_4_08_0@
val lazy_from_val : 'a -> 'a t
@END_FROM_4_08_0@
@BEGIN_BEFORE_4_08_0@
@BEGIN_FROM_4_02_0@
val lazy_from_val : 'a -> 'a t[@@ocaml.deprecated
"Use Lazy.from_val instead."]
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val lazy_from_val : 'a -> 'a t
@END_BEFORE_4_02_0@
@END_BEFORE_4_08_0@
(** @since 4.08.0: val lazy_from_val : 'a -> 'a t
@since 4.02.0:
val lazy_from_val : 'a -> 'a t[@@ocaml.deprecated
"Use Lazy.from_val instead."]
@since 3.07.0: val lazy_from_val : 'a -> 'a t
*)
@BEGIN_FROM_4_08_0@
val lazy_is_val : 'a t -> bool
@END_FROM_4_08_0@
@BEGIN_BEFORE_4_08_0@
@BEGIN_FROM_4_02_0@
val lazy_is_val : 'a t -> bool[@@ocaml.deprecated "Use Lazy.is_val instead."]
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val lazy_is_val : 'a t -> bool
@END_BEFORE_4_02_0@
@END_BEFORE_4_08_0@
(** @since 4.08.0: val lazy_is_val : 'a t -> bool
@since 4.02.0:
val lazy_is_val : 'a t -> bool[@@ocaml.deprecated "Use Lazy.is_val instead."]
@since 3.07.0: val lazy_is_val : 'a t -> bool
*)
end