@hackage / generic-optics

Generically derive traversals, lenses and prisms.

Latest2.3.0.0

About

Metadata

  • Last updated , by AndreasAbel
  • License BSD-3-Clause
  • Categories Generics, Lenses
  • Maintained by: kiss.csongor.kiss@gmail.com

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.12.2
  2. 9.10.2
  3. 9.8.4
  4. 9.6.7
  5. 9.4.8
  6. 9.2.8
  7. 9.0.2
  8. 8.10.7
  9. 8.8.4
  10. 8.6.5
  11. 8.4.4

Readme

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.