Lens Families

Version on this page:1.2.0
LTS Haskell 19.13:2.1.1
Stackage Nightly 2022-06-27:2.1.1
Latest on Hackage:2.1.1

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-1.2.0@sha256:8e70f53b460d50c3655a161798cf04afe7690a4d40ad2161a32bc0ed159dc1c0,1750
Used by 1 package in nightly-2015-08-26(full list with versions):

This package provides first class functional references. In addition to the usual operations of getting, setting and composition, plus integration with monad state, lens families provide some unique features:

  • Polymorphic updating

  • Traversals

  • Cast projection functions to read-only lenses

  • Cast "toList" functions to read-only traversals

  • Cast semantic editor combinators to modify-only traversals.