fieldglass

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.

S
Description
Record lenses for composable accessors and immutable data updates
Readme
60 KiB
0 Stars 1 Watchers 0 Forks
Languages
OCaml 81.7%
Shell 15.8%
Makefile 2.5%