package ppx_meta_conv
Ppx based type_conv for various tree data formats
Install
Dune Dependency
Authors
Maintainers
Sources
ppx_meta_conv-4.0.1.tar.bz2
sha256=0e9945064e1057e9dccf586434a399fba4251812d14fc51050b2cc5e76a47c2b
md5=536ea6b606a1217feccffac4609b5ece
doc/ppx_meta_conv.runtime/Meta_conv/Coder/Make/index.html
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.t
type 'a decoder = ('a, target) Types.Decoder.t
type 'a decoder_exn = ('a, target) Types.Decoder.t_exn
module DeconstrDecoder : sig ... end
Auto generated decoders from Deconstr
val exn : 'a decoder -> 'a decoder_exn
Result monad decoder to decoder with runtime exception Exception
.
val result : 'a decoder_exn -> 'a decoder
Any exception (including Exception
) reported from decoder_exn
is reported as Error
val format_error : Format.formatter -> target Error.t -> unit
Format the error, without its trace
val format_full_error : Format.formatter -> target Error.t -> unit
Format the error, with its full trace
val format_with : ('host -> target) -> Format.formatter -> 'host -> unit
Format host data using its encoder
module Helper : sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page