package ppx_protocol_conv

  1. Overview
  2. Docs
Ppx for generating serialisation and de-serialisation functions of ocaml types

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ppx_protocol_conv-5.2.3.tbz
sha256=3fe42f8deaee6b686cae81ac8cf650be299dd6c86b718e90ea05e903d7fa51b4
sha512=aa8c0798432f097e468996e4fb2e7e936557d013406ba9558c5edd8926172a5499578e4ee7138d9cade1dc6b387f4ddb120499441a4070404fe0d107d639fc3a

doc/ppx_protocol_conv.runtime/Protocol_conv/Runtime/index.html

Module Protocol_conv.RuntimeSource

Sourcetype nonrec ('v, 'e) result = ('v, 'e) result
Sourcemodule Record_in : sig ... end
Sourcemodule Record_out : sig ... end
Sourcemodule Tuple_in : sig ... end
Sourcemodule Tuple_out : sig ... end
Sourcemodule Variant_in : sig ... end
Sourcemodule type Driver = sig ... end

Signature for a driver. Serialization function are on the form of_XXX and deserialization function are on the form to_XXX.

Sourcemodule Helper : sig ... end

Module contains helper function for serializing and deserializing tuples, records and variants. Deserialization functions may raise Helper.Protocol exception. It is recommended that the calling functions convert this exception into a Driver.Protocol_exception