Module Ocaml_utils.Lazy_backtrackSource

Sourcetype ('a, 'b) t
Sourcetype log
Sourceval force : ('a -> 'b) -> ('a, 'b) t -> 'b
Sourceval create : 'a -> ('a, 'b) t
Sourceval get_arg : ('a, 'b) t -> 'a option
Sourceval get_contents : ('a, 'b) t -> ('a, 'b) Either.t
Sourceval create_forced : 'b -> ('a, 'b) t
Sourceval create_failed : exn -> ('a, 'b) t
Sourceval log : unit -> log
Sourceval force_logged : log -> ('a -> ('b, 'c) result) -> ('a, ('b, 'c) result) t -> ('b, 'c) result
Sourceval backtrack : log -> unit
Sourceval is_val : ('a, 'b) t -> bool
Sourcetype ('a, 'b) eval =
  1. | Done of 'b
  2. | Raise of exn
  3. | Thunk of 'a
Sourceval view : ('a, 'b) t -> ('a, 'b) eval
Sourceval force_logged_408 : log -> ('a -> 'b option) -> ('a, 'b option) t -> 'b option