Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 279 Bytes

README.md

File metadata and controls

16 lines (13 loc) · 279 Bytes

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