package ocaml-protoc-plugin

  1. Overview
  2. Docs
Plugin for protoc protobuf compiler to generate ocaml definitions from a .proto file

Install

dune-project
 Dependency

Authors

Maintainers

Sources

2.0.0.tar.gz
md5=64da59cf162da71c16aada2280a41679
sha512=20366714e30ff418b43034351c2560c72a7c99927959d412be7c579378af7f7b09f20c93ad07c816d23c86ebf53d5b56b3481cf38f13b6f0e1c5df5134aaf725

doc/ocaml-protoc-plugin/Ocaml_protoc_plugin/Result/index.html

Module Ocaml_protoc_plugin.ResultSource

This module provides result type and functions for compatibility * with OCaml 4.06

Sourcetype error = [
  1. | `Premature_end_of_input
  2. | `Unknown_field_type of int
  3. | `Wrong_field_type of string * Ocaml_protoc_plugin__.Field.t
  4. | `Illegal_value of string * Ocaml_protoc_plugin__.Field.t
  5. | `Unknown_enum_value of int
  6. | `Oneof_missing
  7. | `Required_field_missing
]
Sourcetype 'a t = ('a, error) result
Sourceval (>>|) : ('a, 'b) result -> ('a -> 'c) -> ('c, 'b) result
Sourceval (>>=) : ('a, 'b) result -> ('a -> ('c, 'b) result) -> ('c, 'b) result
Sourceval return : 'a -> ('a, 'b) result
Sourceval fail : 'a -> ('b, 'a) result
Sourceval pp_error : Format.formatter -> error -> unit
Sourceval show_error : error -> string