talira

adjunctions

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.

  1. distributive Distributive functors for Haskell, the dual of Traversable
  2. contravariant Contravariant functors for Haskell
  3. comonad Comonads for Haskell, the categorical dual of monads
  4. profunctors Profunctor type classes and constructions for Haskell
  5. free Free monads, free applicatives and cofree comonads for Haskell

Compare adjunctions with the top 3