lens-sop

Computing lenses generically using generics-sop

Latest on Hackage:0.3.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Edsko de Vries, Andres Löh
Maintained by [email protected]

This library contains a definition of generalized lenses, along with SOP-style generic functions (based on generics-sop) that compute lenses for a given record type. Generalized lenses for the SOP representation types are also provided.

Furthermore, a generic function is provided that computes a lens from a given (string-based) path specification.