package cconv

  1. Overview
  2. Docs
Combinators for Type Conversion in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.5.tar.gz
md5=1c44c38ffa53706206a0727ea32fefa7
sha512=5fc224adfe5655f15a77783ebbe4a9b9983ec8dd6ed5f9c6d6ca56025db419289291ff1c97707ed3432ecb3b6d35af9237e9bab12acde9b15e4458227361795f

doc/cconv.psexp/CConvPSexp/index.html

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.