Adjunctions and representable functors for Haskell
open sourceBSD-2-Clausefree
adjunctions is a Haskell library of adjunctions and representable functors from category theory, with the monads and comonads they give rise to: adjoint monad and comonad transformers, representable Reader, State and Store, and contravariant adjunctions. It's by Edward Kmett, author of lens.
Problems it solves
- use representable functors in Haskell
- derive a monad from an adjunction in Haskell
- category-theory abstractions for functional programming in Haskell
Features
- adjunctions between functors
- representable functors
- adjoint monad and comonad transformers
- representable Reader, State and Store
Alternatives
The same job
These do what adjunctions does.
- distributive Distributive functors for Haskell, the dual of Traversable
- contravariant Contravariant functors for Haskell
- comonad Comonads for Haskell, the categorical dual of monads
- profunctors Profunctor type classes and constructions for Haskell
- free Free monads, free applicatives and cofree comonads for Haskell
