Profunctor type classes and constructions for Haskell
open sourceBSD-3-Clausefree
profunctors is an open source Haskell library by Edward Kmett that defines the Profunctor type class and its refinements, such as Strong, Choice, Closed, Traversing and Mapping, with constructions like profunctor composition, Cayley, Yoneda, representable and corepresentable profunctors, Ran and Rift.
Problems it solves
- the Profunctor type class for my Haskell optics code
- write profunctor optics in Haskell without depending on all of lens
- Strong and Choice profunctors in Haskell
Features
- Profunctor type class
- Strong, Choice, Closed, Traversing and Mapping classes
- profunctor composition, Cayley and Yoneda constructions
- representable and corepresentable profunctors (Rep, Sieve)
- Ran and Rift
Alternatives
The same job
These do what profunctors does.
- microlens A lightweight lens library for Haskell, compatible with lens
- bifunctors Haskell bifunctors, bifoldables and bitraversables
- contravariant Contravariant functors for Haskell
