@hackage / generic-optics-lite

Monomorphic field opics like with generic-lens

Latest0.1.1

About

Metadata

  • Last updated , by phadej
  • License BSD-3-Clause
  • Categories Generics, Lenses
  • Maintained by: Oleg Grenrus <oleg.grenrus@iki.fi>

  • Lottery factor: 1

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

Readme

Derivation of (monomorphic, i.e. not type-changing) lens, like generic-lens.

The package have minimal dependencies and minimal API:

class HasField (name :: Symbol) r a | name r -> a
field :: HasField name r a => Lens' r a