summaryrefslogtreecommitdiff
path: root/lib/model/reference.ml
blob: 496eb9d4924efddb85c454bc7239c4ea6a86f57d (plain)
1
2
3
4
type t = T : t Content.t Lazy.t -> t [@@unboxed]

let v : (unit -> t Content.t) -> t = fun f -> T (lazy (f ()))
let get : t -> t Content.t = fun (T target) -> Lazy.force target