package ppx_derive_at_runtime

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module type of the Derive submodule that each module for a derived value must provide.

module Value : sig ... end
module Types : sig ... end
val empty : ('a -> Base.Nothing.t) -> 'a Value.t

Derives values for empty types.

val tuple : 'a Types.Tuple.t -> 'a Value.t

Derives values for tuple types.

val record : 'a Types.Record.t -> 'a Value.t

Derives values for record types.

val variant : 'a Types.Variant.t -> 'a Value.t

Derives values for variant types.

val poly_variant : 'a Types.Poly_variant.t -> 'a Value.t

Derives values for polymorphic variant types.

val recursive : Base.string -> 'a Value.t Base.Lazy.t -> 'a Value.t

Derives values for recursive types, including their name.

val with_attribute : 'a Value.t -> 'a Value.attribute -> 'a Value.t

Derives values for types annotated with Value.attribute.

OCaml

Innovation. Community. Security.