HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package2.1.3DataLenses

lens-family

Lens Families

Modules

6 modules
  • Lens.Family265This is the main module for end-users of lens-families.
  • Lens.Family2.State0
  • Lens.Family2.State.Lazy34Lenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family2.State.Strict34Lenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family2.Stock63This module contains lenses, prisms, grids, grates and traversals for common structures in Haskell.
  • Lens.Family2.Unchecked27Caution: 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 · 2