package ocaml-protoc-plugin

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=278461dfca05f428e54abddfdf229471
sha512=b54528f0079c3d38d746ba97e48530bc87edfa684bc814623c450ee65502c6d16b9ae304c6ea6e19ff0ca84c454601a367abd35b295abf5b727bc702ff792716

doc/ocaml-protoc-plugin.protobuf/Protobuf/Result/index.html

Module Protobuf.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 * Protobuf__.Field.t
  4. | `Illegal_value of string * Protobuf__.Field.t
  5. | `Not_implemented
  6. | `Unknown_enum_value of int
  7. | `Oneof_missing
  8. | `Required_field_missing
]
Sourceval show_error : [< `Illegal_value of string * Protobuf__.Field.t | `Not_implemented | `Oneof_missing | `Premature_end_of_input | `Required_field_missing | `Unknown_enum_value of int | `Unknown_field_type of int | `Wrong_field_type of string * Protobuf__.Field.t ] -> string
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
OCaml

Innovation. Community. Security.