morphisms-functors-0.1.6: Functors, theirs compositions and transformations

Safe HaskellSafe
LanguageHaskell2010

Data.Functor.Codensity

Documentation

data Codensity (t :: * -> *) (a :: *) Source #

Constructors

Codensity 

Fields

Instances
Covariant (Codensity t) Source # 
Instance details

Defined in Data.Functor.Codensity

Methods

(<$>) :: (a -> b) -> Codensity t a -> Codensity t b Source #

comap :: (a -> b) -> Codensity t a -> Codensity t b Source #

(<$) :: a -> Codensity t b -> Codensity t a Source #

($>) :: Codensity t a -> b -> Codensity t b Source #

void :: Codensity t a -> Codensity t () Source #

Pointable (Codensity t) Source # 
Instance details

Defined in Data.Functor.Codensity

Methods

point :: a -> Codensity t a Source #