lens-family

Lens Families

Version on this page:2.1.2
LTS Haskell 22.17:2.1.3
Stackage Nightly 2024-04-14:2.1.3
Latest on Hackage:2.1.3

See all snapshots lens-family appears in

BSD-3-Clause licensed by Russell O'Connor
Maintained by Russell O'Connor
This version can be pinned in stack with:lens-family-2.1.2@sha256:c13af34889ed9637b2dbd4542122c01a6ec1351cc6dda673de0079f9b02747ef,2026

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)