Data_type.Typed
type _ t =
| Boolean : bool t
| UInt8 : int t
| UInt16 : int t
| UInt32 : int t
| UInt64 : int t
| Int8 : int t
| Int16 : int t
| Int32 : int t
| Int64 : int t
| Float32 : float t
| Float64 : float t
| Utf8 : string t
| Binary : string t
| Date : Naive_date.t t
| Datetime : Time_unit.t * Tz.t option -> Naive_datetime.t t
| Duration : Time_unit.t -> Duration.t t
| Time : Naive_time.t t
| List : 'a t -> 'a list t
| Custom : {
data_type : 'a t;
f : 'a -> 'b;
f_inverse : 'b -> 'a;
} -> 'b t
strict_type_equal
returns type equality only if the two arguments correspond to the same exact branch.
flatten_custom
extracts out any internal instances of the Custom _
variant to the outermost point e.g. List (Custom { data_type = Boolean; ... })
to Custom { data_type = List Boolean; ... }
.
val sexp_of_packed : packed -> Sexplib0.Sexp.t
val quickcheck_generator_packed :
packed Ppx_quickcheck_runtime.Base_quickcheck.Generator.t
val quickcheck_observer_packed :
packed Ppx_quickcheck_runtime.Base_quickcheck.Observer.t
val quickcheck_shrinker_packed :
packed Ppx_quickcheck_runtime.Base_quickcheck.Shrinker.t
module Core : sig ... end