lens-family-core

Haskell 2022 Lens Families

Version on this page:2.0.0
LTS Haskell 15.7:2.0.0
Stackage Nightly 2020-04-08:2.0.0
Latest on Hackage:2.1.0

See all snapshots lens-family-core appears in

BSD-3-Clause licensed by Russell O'Connor
Maintained by Russell O'Connor

Module documentation for 2.0.0

This version can be pinned in stack with:[email protected]:645b0553e16a3857b08fa44f11f0664296e1db5d6494a83634711c7f4f1707a7,2290

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.

Used by 2 packages in lts-15.5(full list with versions):