Skip to content

Commit

Permalink
Add deriver reference in global README
Browse files Browse the repository at this point in the history
  • Loading branch information
vch9 committed Oct 11, 2021
1 parent 94ace3e commit e27eeb3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,18 @@ describe("qcheck-rely", ({test}) => {
----

=== Deriver

A ppx_deriver is provided to derive QCheck generators from a type declaration.

```ocaml
type tree = Leaf of int | Node of tree * tree
[@@deriving qcheck]
```

See the according https://github.com/c-cube/qcheck/tree/master/src/ppx_deriving_qcheck/[README]
for more information and examples.

=== Compatibility notes

Starting with 0.9, the library is split into several components:
Expand Down

0 comments on commit e27eeb3

Please sign in to comment.