summaryrefslogtreecommitdiff
path: root/lib/model/model.ml
blob: 20914b1eda72be40e9b1ffb65eebc754e8c06287 (plain)
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
(* Entry point of the [model] library: re-export the submodules, and expose
   the resolved types at the top level, so that use sites can write
   [Model.content] instead of spelling out the type parameters. *)

module Identifier = Identifier
module Dsl = Dsl
module Typ = Typ
module Reference = Reference
module DataList = Data_list
module Field = Field
module Section = Section
module Content = Content

(** The target of a reference field, resolved: a lazy pointer to a content, or
    a static list. *)
type target = Reference.target

type list = target Data_list.t
type content = target Content.t
type section = target Section.t
type field = target Field.t
type field_ex = target Field.field_ex
type reference = target Typ.reference
type value = target Typ.value
type 'db typ = ('db, target) Typ.t