package sexplib

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

Install

Dune Dependency

Authors

Maintainers

Sources

sexplib-v0.11.0.tar.gz
sha256=030f2808e46febd80d4986f5be06f40b0bb6a0b081589d5bede8c3aebf305d4f
md5=1d53d945914b6b9a380dc8923f19e9ae

doc/sexplib.num/Sexplib_num/Sexplib_num_conv/index.html

Module Sexplib_num.Sexplib_num_conv

val sexp_of_big_int : Big_int.big_int -> Sexplib.Sexp.t

sexp_of_big_int n converts the value n of type Big_int.big_int to an S-expression.

val sexp_of_nat : Nat.nat -> Sexplib.Sexp.t

sexp_of_nat n converts the value n of type Nat.nat to an S-expression.

val sexp_of_ratio : Ratio.ratio -> Sexplib.Sexp.t

sexp_of_ratio n converts the value n of type Ratio.ratio to an S-expression.

val sexp_of_num : Num.num -> Sexplib.Sexp.t

sexp_of_num n converts the value n of type Num.num to an S-expression.

val big_int_of_sexp : Sexplib.Sexp.t -> Big_int.big_int

big_int_of_sexp sexp converts S-expression sexp to a value of type Big_int.big_int.

val nat_of_sexp : Sexplib.Sexp.t -> Nat.nat

nat_of_sexp sexp converts S-expression sexp to a value of type Nat.nat.

val ratio_of_sexp : Sexplib.Sexp.t -> Ratio.ratio

ratio_of_sexp sexp converts S-expression sexp to a value of type Nat.ratio.

val num_of_sexp : Sexplib.Sexp.t -> Num.num

num_of_sexp sexp converts S-expression sexp to a value of type Nat.num.

OCaml

Innovation. Community. Security.