{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:hackage/lens","name":"lens","description":"This package comes \"Batteries Included\" with many useful lenses for the types\ncommonly used from the Haskell Platform, and with tools for automatically\ngenerating lenses and isomorphisms for user-supplied data types.\n\nThe combinators in Control.Lens provide a highly generic toolbox for composing\nfamilies of getters, folds, isomorphisms, traversals, setters and lenses and their\nindexed variants.\n\nAn overview, with a large number of examples can be found in the README.\n\nAn introductory video on the style of code used in this library by Simon Peyton Jones is available from Internet Archive.\n\nA video on how to use lenses and how they are constructed is available on youtube.\n\nSlides for that second talk can be obtained from comonad.com.\n\nMore information on the care and feeding of lenses, including a brief tutorial and motivation\nfor their types can be found on the lens wiki.\n\nA small game of pong and other more complex examples that manage their state using lenses can be found in the example folder.\n\nLenses, Folds and Traversals\n\nWith some signatures simplified, the core of the hierarchy of lens-like constructions looks like:","version":"5.3.6","softwareVersion":"5.3.6","license":"https://spdx.org/licenses/BSD-2-Clause","codeRepository":"https://github.com/ekmett/lens","issueTracker":"https://github.com/ekmett/lens/issues","url":"http://github.com/ekmett/lens/","keywords":["bsd2","data","generics","lenses","library","Propose Tags"],"programmingLanguage":{"@type":"ComputerLanguage","name":"Haskell"},"maintainer":[{"@type":"Person","name":"ryanglscott"},{"@type":"Person","name":"EricMertens"},{"@type":"Person","name":"EdwardKmett"},{"@type":"Person","name":"JohnWiegley"}],"author":[{"@type":"Person","name":"ryanglscott"},{"@type":"Person","name":"EricMertens"},{"@type":"Person","name":"EdwardKmett"},{"@type":"Person","name":"JohnWiegley"}],"copyrightHolder":[{"@type":"Person","name":"ryanglscott"},{"@type":"Person","name":"EricMertens"},{"@type":"Person","name":"EdwardKmett"},{"@type":"Person","name":"JohnWiegley"}],"dateCreated":"2012-07-25","dateModified":"2026-01-10","datePublished":"2026-01-10","copyrightYear":2012,"downloadUrl":"https://hackage.haskell.org/package/lens-5.3.6/lens-5.3.6.tar.gz","applicationCategory":"hackage","runtimePlatform":"hackage","developmentStatus":"active","sameAs":["https://hackage.haskell.org/package/lens"],"https://www.w3.org/ns/activitystreams#likes":2107,"https://forgefed.org/ns#forks":274}