package ppx_sexp_conv

  1. Overview
  2. Docs
[@@deriving] plugin to generate S-expression conversion functions

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=4af4f99d774fab77bf63ba2298fc288c356a88bdac0a37e3a23b0d669410ee5a

doc/src/ppx_sexp_conv.expander/labeled_tuple.ml.html

Source file labeled_tuple.ml

1
2
3
4
5
6
7
8
open! Base

let is_valid alist = List.exists alist ~f:(fun (option, _) -> Option.is_some option)

let atom_of_label = function
  | None -> "."
  | Some string -> "~" ^ string
;;
OCaml

Innovation. Community. Security.