From bc78bea63b7c75e8a9d222dc86fb75ed293a2242 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 21 Nov 2026 12:22:50 +0100 Subject: Renamed the module Typ into Types --- lib/model/data.mli | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/model/data.mli') diff --git a/lib/model/data.mli b/lib/model/data.mli index 6773589..37e7267 100644 --- a/lib/model/data.mli +++ b/lib/model/data.mli @@ -8,18 +8,18 @@ data held (e.g. [string option], [int64 option], or [int64 Seq.t] for a multivalued reference), and over ['t], the target of the field for references. The DB representation ['db] appears only inside the field type - carried by the constructors. The field type {!Typ.t} stays in the model + carried by the constructors. The field type {!Types.t} stays in the model package; only the data itself lives here. *) type ('ocaml, 't) data = private | None - | V : ('db, 'ocaml, 't) Typ.t * 'ocaml -> ('ocaml, 't) data + | V : ('db, 'ocaml, 't) Types.t * 'ocaml -> ('ocaml, 't) data val none : ('ocaml, 't) data (** [none] tells the field is empty in the database (or left as is, on update) *) -val v : ('db, 'ocaml, 't) Typ.t * 'ocaml -> ('ocaml, 't) data +val v : ('db, 'ocaml, 't) Types.t * 'ocaml -> ('ocaml, 't) data (** [v (typ, value)] is the value for the field, in its code representation ['ocaml] — e.g. a single [string option], or an [int64 Seq.t] for a multivalued reference. The field type [typ] is also reported: it ties the @@ -39,7 +39,7 @@ val any : ('ocaml, 't) data -> 't any (* Function providing the data of each field to insert in the database *) let f : string -> Reference.target any = function - | "siret" -> any (v (Typ.Text, Some "siret")) - | "name" -> any (v (Typ.Text, Some "name")) + | "siret" -> any (v (Types.Text, Some "siret")) + | "name" -> any (v (Types.Text, Some "name")) | _ -> any none ] *) -- cgit v1.2.3