package cconv

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CConvPSexpSource

Polymorphic Variants S-expressions

These S-expressions are compatible with ocaml-containers' S-expressions. Howerver, they do not add any dependency and can be used without containers.

Sourcetype 'a or_error = [
  1. | `Ok of 'a
  2. | `Error of string
]
Sourcetype t = [
  1. | `Atom of string
  2. | `List of t list
]
Sourceval encode : 'src CConv.Encode.encoder -> 'src -> t
Sourceval decode_exn : 'into CConv.Decode.decoder -> t -> 'into
Sourceval decode : 'into CConv.Decode.decoder -> t -> 'into or_error
OCaml

Innovation. Community. Security.