An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

lens

This package comes "Batteries Included" with many useful lenses for the types commonly used from the Haskell Platform, and with tools for automatically generating lenses and isomorphisms for user-supplied data types. The combinators in Control.Lens provide a highly generic toolbox for composing families of getters, folds, isomorphisms, traversals, setters and lenses and their indexed variants. An overview, with a large number of examples can be found in the README. An introductory video on the style of code used in this library by Simon Peyton Jones is available from Internet Archive. A video on how to use lenses and how they are constructed is available on youtube. Slides for that second talk can be obtained from comonad.com. More information on the care and feeding of lenses, including a brief tutorial and motivation for their types can be found on the lens wiki. A small game of pong and other more complex examples that manage their state using lenses can be found in the example folder. Lenses, Folds and Traversals With some signatures simplified, the core of the hierarchy of lens-like constructions looks like:

Ecosystem
hackage.haskell.org
Latest Release
5.3.6
about 2 months ago
Versions
162
Downloads
431,213 total
Dependent Packages
366
Dependent Repos
4,552
Links
Registry hackage.haskell.org
Source Repository
Homepage Homepage
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:hackage/lens
spec
License BSD-2-Clause
First Release over 13 years ago
Last Synced 2 days ago
Repository
Stars 1,984 on GitHub
Forks 269 on GitHub
Commits 3754
Committers 162
Avg per Author 23.173
DDS 0.446
Rankings on hackage.haskell.org
Overall Top 0.1%
Downloads Top 0.1%
Dependent packages Top 0.1%
Dependent repos Top 0.1%
Forks Top 0.2%