package eliom

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file eliom_lazy.ml

1
2
3
4
5
6
7
8
# 1 "src/lib/eliom_lazy.server.ml"
type 'a request = {data : unit -> 'a; mark : 'a request Eliom_wrap.wrapper}
[@@warning "-69"]

let mark = Eliom_wrap.create_wrapper (fun l -> l.data ())
let from_fun data = {data; mark}
let from_val v = {data = (fun () -> v); mark}
let force v = v.data ()
OCaml

Innovation. Community. Security.