@hackage / lens-sop

Computing lenses generically using generics-sop

Latest0.3.1

About

Metadata

  • Last updated , by EdskoDeVries
  • License BSD-3-Clause
  • Categories Generics
  • Maintained by: andres@well-typed.com

  • Lottery factor: 2

Links

Installation

Tested Compilers

  1. 9.12.1
  2. 9.10.1
  3. 9.8.2
  4. 9.6.6
  5. 9.4.8
  6. 9.2.8
  7. 8.10.7

Readme

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.