jobjo/popper

Add ppx for deriving generators and comparators

jobjo opened this issue · 0 comments

jobjo commented

Example:

type person = { name : string; age : int option } [@@deriving popper]

Gives:

type person = { name : string; age : int option } [@@deriving popper]

let person_generator = 
  let+ name = string in
  and+ age = option int in
  { name ; age }

let person_comparator = ...