package ppx_make

All checked builds pass
  1. Overview
  2. Docs
[@@deriving make]

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.3.4.tar.gz
md5=008594f8821d807126f40c94d68f5a89
sha512=72de3f6a4f355261afadc2800c3a773ef92914a507323af46d640df33162f6dc588bd91e1a774979101b2f533c6c01713b39a118b01aa9716ccaacfe0fc9e387

Description

[@@deriving] plugin to generate make functions

Added to opam-repository:

README

[@@deriving make]

OCaml CI GitHub release status Coverage Status

[@@deriving] plugin to generate make functions.

Installation

ppx_make can be installed via OCaml Package Manager.

$ opam install ppx_make

Usage

Please see the documentation.

Example

type my_type = {
  my_field : int;
  my_option : int option;
  my_list : int list;
  my_string : string;
  my_default : int; [@default 1024]
}
[@@deriving make]

(* the deriver will automatically generate the function below *)
val make_my_type :
  my_field:int ->
  ?my_option:int ->
  ?my_list:int list ->
  ?my_string:string ->
  ?my_default:int ->
  unit ->
  my_type

Dependencies (2)

  1. ppxlib >= "0.10.0"
  2. dune >= "2.7"

Dev Dependencies (4)

  1. odoc with-doc
  2. bisect_ppx with-test
  3. ppx_show with-test
  4. ounit2 with-test

Optional Dependencies

None

Conflicts

None

Build status

Results of building ppx_make with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. 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
0.3.4 (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