exception Not_downgradable of Core_kernel.Sexp.tException raised when trying to downgrade a type struct that makes use of new features or info not representable in a former version.
include sig ... endmodule Name : sig ... endmodule Variant : sig ... endmodule Variant_infos : sig ... endmodule Field : sig ... endmodule Record_infos : sig ... endinclude sig ... endval sexp_of_t : t ‑> Sexplib.Sexp.tval incompatible : unit ‑> tval has_named : t ‑> boolval standalone_exn : readonly:t Name.Table.t ‑> t ‑> tre put at least one Named let binding for each named used in the structure so that the structure is self contained, and not depend on table anymore. This is needed especially if the structure has to go outside and be given to some other part of the world
This compare is insensible to alpha conversion of cycle indexes,
as well as reduction.
The polymorphic compare may be wrong for equivalent structures.
See also alpha_conversion or reduce if needed.
This function considers equivalent polymorphic variants with different order of fields, as long as the order of cases is the only difference.
merge two types by regrouping the polymorphic variants, if this can be done. if this cannot be done, this raises with a reason for the error, in the hope that this information could be seen by an human, like a compiler type error message.
val is_polymorphic_variant : t ‑> boolmodule type Typestructable : sig ... endmodule Generic : Typerep_lib.Std.Type_generic.S with type 'a t = tval of_typerep : 'a Typerep_lib.Std.Typerep.t ‑> tval to_typerep : t ‑> Typerep_lib.Std.Typerep.packedThis generates new uniq Names for the type present in the structure. In particular, behavior overrides done via the generic registering mechanism will not occur when working out of the returned type_rep.
val sexp_of_typerep : _ Typerep_lib.Std.Typerep.t ‑> Core_kernel.Sexp.tmodule Diff : sig ... endDiff offers a way to know given two type structures if their bin_io representation
would be compatible. If not, the difference between the structure is computed and
can be given as part as an error message.
module Versioned : sig ... endclass traverse : object ... endmodule Named_utils : functor (X : sig ... end) -> sig ... endval recreate_dynamically_typerep_for_test : 'a Typerep_lib.Std.Typerep.t ‑> 'a Typerep_lib.Std.Typerep.t