HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Package2.3.0.0GenericsRecordsLens

generic-lens

Generically derive traversals, lenses and prisms.

Modules

20 modules
Internal modules · 4

Description

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 a van Laarhoven interface. For an alternative interface, supporting an opaque optic type, see generic-optics.

Depends on

3 packages

Used by in this set · 1