generic-optics

Generically derive traversals, lenses and prisms.

https://github.com/kcsongor/generic-lens

Version on this page:2.2.0.0
LTS Haskell 22.14:2.2.1.0@rev:2
Stackage Nightly 2024-03-28:2.2.1.0@rev:2
Latest on Hackage:2.2.1.0@rev:2

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-2.2.0.0@sha256:d29ce810bfa454e6e594d7d47c5687888666dbbde6cc9808c568b63a9194c5d7,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.

Changes

generic-optics-2.2.0.0 (2021-07-13)

  • GHC 9.0 compatibility

generic-optics-2.1.0.0 (2021-01-25)

  • Bump to generic-lens-core-2.1.0.0

generic-optics-2.0.0.0 (2020-02-11)

  • Initial release