Generically derive traversals, lenses and prisms.

Version on this page:
LTS Haskell 22.12:
Stackage Nightly 2024-02-26:
Latest on Hackage:

See all snapshots generic-optics appears in

BSD-3-Clause licensed by Csongor Kiss
Maintained by [email protected]
This version can be pinned in stack with:generic-optics-,3716

This library uses GHC.Generics to derive efficient optics (traversals, lenses and prisms) for algebraic data types in a type-directed way, with a focus on good type inference and error messages when possible.

The library exposes an optics interface. For a van Laarhoven interface, see generic-lens.


generic-optics- (2021-01-25)

  • Bump to generic-lens-core-

generic-optics- (2020-02-11)

  • Initial release