Module Tpf_sexplib

Generic Sexplib converters.

Generic injections / projections between a type and Sexplib's Sexplib0.Sexp.t.

Types are mapped to S-expressions in Sexplib-compatible way.

Encoders

type 'a e = 'a -> Sexplib0.Sexp.t

Encoder type.

module Enc : sig ... end

Generic Sexp encoder.

Decoders

type 'a d = Sexplib0.Sexp.t -> 'a

Decoder type.

module Dec : sig ... end

Generic Sexp decoder.

Sexp as generic objects

val data_sexp : (string, Sexplib0.Sexp.t list, Sexplib0.Sexp.t) Tpf.data2

Generic representation of Sexplib0.Sexp.t itself.