package ppx_meta_conv
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Coder.Make
If you want to write an instance of meta_conv implementation, you define the following primitive encoders and decoders at least.
Parameters
Signature
Exception for decoding error. We must declare here and not in a more general place, since the error contains target, and we cannot have polymorphic exceptions in OCaml.
type 'a encoder = ('a, target) Types.Encoder.ttype 'a decoder = ('a, target) Types.Decoder.ttype 'a decoder_exn = ('a, target) Types.Decoder.t_exnmodule DeconstrDecoder : sig ... endAuto generated decoders from Deconstr
val exn : 'a decoder -> 'a decoder_exnResult monad decoder to decoder with runtime exception Exception.
val result : 'a decoder_exn -> 'a decoderAny exception (including Exception) reported from decoder_exn is reported as Error
val format_error : Format.formatter -> target Error.t -> unitFormat the error, without its trace
val format_full_error : Format.formatter -> target Error.t -> unitFormat the error, with its full trace
val format_with : ('host -> target) -> Format.formatter -> 'host -> unitFormat host data using its encoder
module Helper : sig ... end sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page