talira

profunctors

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.

  1. microlens A lightweight lens library for Haskell, compatible with lens
  2. bifunctors Haskell bifunctors, bifoldables and bitraversables
  3. contravariant Contravariant functors for Haskell

Compare profunctors with the top 3