@hackage generic-optics2.3.0.0
Generically derive traversals, lenses and prisms.
Installation
Tested Compilers
Dependencies (3)
- base >=4.11 && <5
- generic-lens-core ^>=2.3.0.0
- optics-core >=0.2 && <1 Show all…
Dependents (5)
@hackage/ema-generics, @hackage/cuddle, @cardano/cuddle, @hackage/bytepatch, @hackage/ema
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.