Haskell 98 Lens Families
|Version on this page:||1.2.3|
|LTS Haskell 20.24:||2.1.2|
|Stackage Nightly 2023-06-08:||2.1.2|
|Latest on Hackage:||2.1.2|
Maintained by Russell O'Connor
This version can be pinned in stack with:
Module documentation for 1.2.3
Depends on 3 packages(full list with versions):
Used by 3 packages in lts-14.27(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 the state monad, lens families provide some unique features:
Cast projection functions to read-only lenses
Cast "toList" functions to read-only traversals
Cast semantic editor combinators to modify-only traversals.
(†) 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 require Haskell 98.