Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (27 sloc) 1.04 kb
fccc685 Initial open-source release
MLstate authored
1 (*
2 Copyright © 2011 MLstate
3
4 This file is part of OPA.
5
6 OPA is free software: you can redistribute it and/or modify it under the
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
10 OPA is distributed in the hope that it will be useful, but WITHOUT ANY
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
16 along with OPA. If not, see <http://www.gnu.org/licenses/>.
17 *)
18 (** {6 Ocaml Stdlib} *)
19
20 type 'a t = 'a lazy_t
21
22
23 exception Undefined
24
25 external force : 'a t -> 'a = "%lazy_force"
26 val force_val : 'a t -> 'a
27
28 val lazy_from_fun : (unit -> 'a) -> 'a t
29 val lazy_from_val : 'a -> 'a t
30
31 val lazy_is_val : 'a t -> bool
32
33 (** {6 Mlstate} *)
34
35 (**
36 Goes throw all nested values contained in any block,
37 and force all lazy values.
38 *)
39 val deep_force : Obj.t -> Obj.t
Something went wrong with that request. Please try again.