Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (18 sloc) 1.059 kB

lens

Build Status

This package provides families of lenses, isomorphisms, folds, traversals, getters and setters.

These lenses are compatible with those from lens-family, lens-family-core and lens-family-th, but they provide a great deal of additional flexibility in their composition.

An overview of the derivation of setters, folds, traversals, getters and lenses can be found on the lens wiki under Tutorial.

Lens Hierarchy

Example

ghci> :m + Control.Lens Data.Text.Lens
ghci> anyOf (traverse.text) (=='y') ["hello"^.packed, "goodbye"^.packed]
True

Contact Information

Contributions and bug reports are welcome!

Please feel free to contact me through github or on the #haskell IRC channel on irc.freenode.net.

-Edward Kmett

Jump to Line
Something went wrong with that request. Please try again.