diff options
| author | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 09:57:49 +0100 |
|---|---|---|
| committer | Sébastien Dailly <sebastien@dailly.me> | 2026-11-19 09:57:49 +0100 |
| commit | e1bf7686f408b52a870d4ed4f3c565dbbcc3954f (patch) | |
| tree | ee7e156032cc0c43ca10879051e64c3dfeab1515 /lib/model/model.ml | |
| parent | a9628fda0fc027c54b5ed5313a0c41731d79e41f (diff) | |
Management of lists in the settings
Diffstat (limited to 'lib/model/model.ml')
| -rw-r--r-- | lib/model/model.ml | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/lib/model/model.ml b/lib/model/model.ml index ec28b56..25179ff 100644 --- a/lib/model/model.ml +++ b/lib/model/model.ml @@ -1,20 +1,24 @@ (* Entry point of the [model] library: re-export the submodules, and expose - the aliases for the model types with the references resolved to - [Reference.t] at the top level, so that use sites can write [Model.content] - instead of [Model.content]. *) + 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 -type content = Reference.t Content.t -type section = Reference.t Section.t -type field = Reference.t Field.t -type field_ex = Reference.t Field.field_ex -type value = Reference.t Typ.value -type reference = Reference.t Typ.reference -type 'db typ = ('db, Reference.t) Typ.t +(** 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 |
