BSD-3-Clause licensed by Russell O'Connor
Maintained by Russell O'Connor
This version can be pinned in stack with:lens-family-core-2.1.2@sha256:702013af981089f991c93598762b8804314266c2bd7d92fc35fb6a8b62af1883,2325
Used by 3 packages in lts-19.19(full list with versions):

This package provides first class(†) functional references in Van Laarhoven style supporting the following optics:

  • Lenses (view, over)

  • Traversals (toListOf, matching, over)

  • Setters (over)

  • Grates (zipWithOf, under, review)

  • Resetters (under)

  • Adapters (view, review)

  • Grids (toListOf, over / under, review)

  • Prisms (matching, over / under, review)

  • Getters (view)

  • Folders (toListOf)

  • Reviewers (review)

(†) For optimal first-class support use the lens-family package with rank 2 / rank N polymorphism. Lens.Family.Clone allows for first-class support of lenses and traversals for those who cannot support rank 2 polymorphism.