package ppx_protocol_conv

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

Install

Dune Dependency

Authors

Maintainers

Sources

ppx_protocol_conv-5.2.2.tbz
sha256=994362c2185d12f732e522e1e457b7de67745e594b898368c878424e93f84587
sha512=237b236a257f35ad671194f6ee0690dfc85eef9b088a928e7b0582b23b5acc19b6727318be6b7abfa0f6c1052047b820e7a0345d8cadb3c0280e18dc3da6e453

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

OCaml

Innovation. Community. Security.