Traverse record declarations and generate typed field accessors
This commit is contained in:
5 files changed
+73
-1
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user