package ppx_protocol_conv
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Ppx for generating serialisation and de-serialisation functions of ocaml types
Install
dune-project
Dependency
Authors
Maintainers
Sources
5.0.0.tar.gz
md5=fb107eb8055a9b2410b23e763c63bb70
sha512=fc0acc9d40665904b99ccfe4ca33a78a47ffedb6a2ee9c72c98c8bc21bda7e53fe8826784183ef9daa0fc228336169d2e0418668ffe39c149365e0a8e69a1f69
doc/ppx_protocol_conv.driver/Ppx_protocol_driver/Make/index.html
Module Ppx_protocol_driver.Make
Parameters
module P : ParametersSignature
type t = D.tSerialized type. This type should not be opaque, so it is recommended that drivers implement the signature as Runtime.Driver with type t = ...
exception Protocol_error of errorException for protocol errors. The driver should make sure that this is the only exception raised when deserializing
val make_error : ?value:t -> Base.string -> errorConstruct an error to be raised from a custom parser.
val error_to_string_hum : error -> Base.stringConvert an error type to a human readable string
val to_string_hum : t -> Base.stringConvert t to a string
val try_with : (t -> 'v) -> t -> ('v, error) Protocol_conv.Runtime.resultWrap deserialization function to convert exceptions into an result type
val to_variant :
(t, 'a) Protocol_conv.Runtime.Variant_in.t Base.list ->
t ->
'aval of_variant :
Base.string ->
(t, 'a, t) Protocol_conv.Runtime.Tuple_out.t ->
'aval to_record :
(t, 'constr, 'b) Protocol_conv.Runtime.Record_in.t ->
'constr ->
t ->
'bval of_record : (t, 'a, t) Protocol_conv.Runtime.Record_out.t -> 'aval to_tuple :
(t, 'constr, 'b) Protocol_conv.Runtime.Tuple_in.t ->
'constr ->
t ->
'bval of_tuple : (t, 'a, t) Protocol_conv.Runtime.Tuple_out.t -> 'aval to_option : (t -> 'a) -> t -> 'a Base.optionval of_option : ('a -> t) -> 'a Base.option -> tval to_array : (t -> 'a) -> t -> 'a Base.arrayval of_array : ('a -> t) -> 'a Base.array -> tval to_int32 : t -> Base.int32val of_int32 : Base.int32 -> tval to_int64 : t -> Base.int64val of_int64 : Base.int64 -> tval to_nativeint : t -> Base.nativeintval of_nativeint : Base.nativeint -> tval to_string : t -> Base.stringval of_string : Base.string -> tval to_float : t -> Base.floatval of_float : Base.float -> t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page