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

5.1.3.tar.gz
md5=2f9f5eb9431d9db1e89151277d2bab2c
sha512=3f9d410edd8531c61b8f66a2d21e9f47cfd7def6c14e94501af584afa6801e2f0a94abce8c82b7064b49b113c3a7a12ca1c7027d03e2e88c10d39b4857402077

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.