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-core

Haskell 2022 Lens Families

Modules

7 modules
  • Lens.Family59This is the main module for end-users of lens-families-core.
  • Lens.Family.Clone31This module is provided for "Haskell 2022" compatibility.
  • Lens.Family.State0
  • Lens.Family.State.Lazy33Lenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family.State.Strict33Lenses allow you to use fields of the state of a state monad as if they were variables in an imperative language.
  • Lens.Family.Stock58This module contains lenses, prisms, grids, grates and traversals for common structures in Haskell.
  • Lens.Family.Unchecked13Caution: 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)

(†) 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.

Depends on

3 packages

Used by in this set · 1