HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Package2.1.3DataLenses

lens-family

Lens Families

Modules

  • Lens.Family2This is the main module for end-users of lens-families.
  • Lens.Family2.State
  • Lens.Family2.State.LazyLenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family2.State.StrictLenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family2.StockThis module contains lenses, prisms, grids, grates and traversals for common structures in Haskell.
  • Lens.Family2.UncheckedCaution: Improper use of this module can lead to unexpected behaviour if the preconditions of the functions are not met.

Description

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)

Depends on

5 packages

Used by in this set · 1