package ppx_units

All checked builds pass
  1. Overview
  2. Docs
Generate unit types for every record field

Install

dune-project
 Dependency

Authors

Maintainers

Sources

1.0.0.tar.gz
md5=ae627f403e258a49dba179bfca0b631c
sha512=ed057812b22bc1edda39091801c4229babdc2708d3a629d1d896ab0cb4e651dea3c9db32a9ed9d69fa2058677a0f5d9921546b92e7e32d3f6626825191553e11

Description

ppx_units is a simple deriver to automatically generate single variant types from record type definitions

Added to opam-repository:

README

ppx_units

ppx_units is a simple deriver to automatically generate single variant types from record type definitions.

type person = {
  id: string;
  first_name: int [@unit "FN"];
} [@@deriving units]

will generate

type id = ID

type first_name = FN

Dependencies (3)

  1. ppxlib >= "0.14.0"
  2. dune >= "2.0.0"
  3. ocaml >= "4.10.0"

Dev Dependencies (1)

  1. alcotest with-test

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building ppx_units with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
1.0.0 (this version) good good good good good
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure