adjunctions-0.1: Adjunctions

Data.Functor.Adjunction

Documentation

class (Functor f, Functor g) => Adjunction f g | f -> g, g -> f whereSource

Methods

unit :: a -> g (f a)Source

counit :: f (g a) -> aSource

leftAdjunct :: (f a -> b) -> a -> g bSource

rightAdjunct :: (a -> g b) -> f a -> bSource