summaryrefslogtreecommitdiff
path: root/lib/model/model.ml
blob: c3e5b5b7f80cfef6fdbe629afead5a5d5a9910be (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
26
(* 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 Data = Data
module Reference = Reference
module DataList = Data_list
module Path = Path
module Field = Field
module Section = Section
module Content = Content

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

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 ('db, 'ocaml) typ = ('db, 'ocaml, target) Typ.t