Traverse record declarations and generate typed field accessors

This commit is contained in:
milner committed 2019-03-08 17:28:32 +00:00
1 parent 59e39e593c
commit 4eda2052af
5 files changed
+73 -1

No files matched your search

+3
View File
@@ -2,6 +2,9 @@
Lenses for reading and updating immutable data in OCaml.
Annotate a record with `[@@fieldglass generate]` to generate field accessors.
The `[@@lens generate]` spelling is also accepted.
Build with `make`; run the checks with `make test`.
The `_hd` and `_tl` lenses raise `Invalid_argument` on empty lists.