summaryrefslogtreecommitdiff
path: root/lib/model/field.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model/field.mli')
-rw-r--r--lib/model/field.mli10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/model/field.mli b/lib/model/field.mli
index 0619f33..3a19ab8 100644
--- a/lib/model/field.mli
+++ b/lib/model/field.mli
@@ -2,16 +2,18 @@ type textI18n = (string * string) list
(** A label is just an association list*)
type validation = { rule : string list Dsl.t; message : textI18n }
-type 't field_ex = T : ('db, 'ocaml, 't) Typ.t -> 't field_ex
+type 't field_ex = T : ('db, 'ocaml, 't) Types.t -> 't field_ex
type 'ref t
(** Description of a field *)
val named_of :
- 'ref t -> ('db, 'ocaml, 'ref) Typ.t -> (('db, 'ocaml, 'ref) Typ.t) Typ.named option
-(** [named_of field typ] is [Some named] — the field's {!Typ.named} type,
+ 'ref t ->
+ ('db, 'ocaml, 'ref) Types.t ->
+ ('db, 'ocaml, 'ref) Types.t Types.named option
+(** [named_of field typ] is [Some named] — the field's {!Types.named} type,
stamped with ['db] and ['ocaml] — when [typ] matches the declared type of
- [field] (checked with {!Typ.eq} and {!Typ.eq_ocaml}); [None] on type
+ [field] (checked with {!Types.eq} and {!Types.eq_ocaml}); [None] on type
mismatch *)
val create :