package ppx_typed_fields

  1. Overview
  2. Docs
type 'a t = 'a Key.t
type derived_on
val names : Base.string Base.list
val name : 'a t -> Base.string

The name of the field, e.g. "rgb" from the example above.

val path : 'a t -> Base.string Base.list

The path of a field, e.g. "rgb" from the example above. The list will have multiple elements if the field is a subproduct.

val __ord : 'a t -> Base.int Base.list
module Type_ids : sig ... end
module Packed : sig ... end

Packed is useful for making collections of 'a t's with different 'a's.

OCaml

Innovation. Community. Security.