package sexplib

  1. Overview
  2. Docs
Library for serializing OCaml values to and from S-expressions

Install

Dune Dependency

Authors

Maintainers

Sources

sexplib-v0.10.0.tar.gz
sha256=90cb764c44f7b2ab1455b64bef2d8ad9452947946fa90598dda7994b7f434c57
md5=b8f5db21a2b19aadc753c6e626019068

doc/sexplib.0/Sexplib0/Sexp_conv/Exn_converter/index.html

Module Sexp_conv.Exn_converterSource

Sourceval add_auto : ?finalise:bool -> exn -> (exn -> Sexp.t) -> unit
  • deprecated [since 2016-07] use Conv.Exn_converter.add
Sourceval add : ?finalise:bool -> extension_constructor -> (exn -> Sexp.t) -> unit

add ?finalise constructor sexp_of_exn registers exception S-expression converter sexp_of_exn for exceptions with the given constructor.

NOTE: If finalise is true, then the exception will be automatically registered for removal with the GC (default). Finalisation will not work with exceptions that have been allocated outside the heap, which is the case for some standard ones e.g. Sys_error.

  • parameter finalise

    default = true

Sourcemodule For_unit_tests_only : sig ... end
OCaml

Innovation. Community. Security.