summaryrefslogtreecommitdiff
path: root/lib/model/model.ml
blob: 25179ff705caf8cb96d77274e5bbc68eab4c52cd (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
(* 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 List = 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.t Typ.target

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