package cconv

  1. Overview
  2. Docs
Combinators for Type Conversion in OCaml, and ppx_deriving plugin.

Install

Dune Dependency

Authors

Maintainers

Sources

0.3.1.tar.gz
sha256=a6f98df25e842f000b58b4aad9b1b7f155719be23c3b940fa8240b29baac79dc
md5=a50485f02fa264d55a9c6b1744dabfc6

doc/cconv.psexp/CConvPSexp/index.html

Module CConvPSexp

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.

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

Innovation. Community. Security.