# optics

> Lenses, traversals and prisms for Haskell through an abstract interface

Source: https://talira.ai/catalog/optics-jfhnkr9z
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / functional programming](https://talira.ai/categories/libraries/functional-programming), [languages / haskell](https://talira.ai/categories/languages/haskell)
- Licence: BSD-3-Clause[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Well-Typed](https://talira.ai/orgs/well-typed.md)

optics is a family of [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) packages for defining and using lenses, traversals, prisms and other optics through an abstract interface, comparable in power to [lens](https://talira.ai/catalog/lens-w72sargm.md) but exploring a different design. It's split into optics-core (core definitions with few dependencies), optics-extra, optics-th (Template Haskell), optics-sop and the batteries-included optics package. It's made by Well-Typed (Adam Gundry, Andres Löh, Andrzej Rybczak and Oleg Grenrus).

## Links

- GitHub: https://github.com/well-typed/optics

## Problems it solves

- update nested records in Haskell
- an alternative lens library for Haskell
- focus on part of a data structure with optics in Haskell

## Features

- lenses, traversals and prisms with an abstract interface
- optics-core with a minimal dependency footprint
- Template Haskell generation (optics-th)
- alternative design to lens

## Trust

Overall: 0.44 out of 1.
Signals: maintenance 0.62, adoption 0.52, momentum 0.19, community 0.55, backing 0.30, extensibility 0.00.

- last commit 9 days ago
- 3 commits in the last 90 days
- 392 GitHub stars
- 23 contributors
- backed by Well-Typed

## Alternatives

- [lens](https://talira.ai/catalog/lens-w72sargm.md): Lenses, folds and traversals for Haskell
- [microlens](https://talira.ai/catalog/microlens-7d9zprsq.md): A lightweight lens library for Haskell, compatible with lens
- [profunctors](https://talira.ai/catalog/profunctors-q7jqpj7b.md): Profunctor type classes and constructions for Haskell
- [adjunctions](https://talira.ai/catalog/adjunctions-7ydbnyw1.md): Adjunctions and representable functors for Haskell
- [transformers](https://talira.ai/catalog/transformers-tkbnymgd.md): Concrete functor and monad transformers for Haskell
- [comonad](https://talira.ai/catalog/comonad-919k76vr.md): Comonads for Haskell, the categorical dual of monads

## Sources

[^1]: https://github.com/well-typed/optics/blob/master/optics-core/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/well-typed/optics/blob/master/optics-core/optics-core.cabal (checked 29 Nov 2026)
