Module

Control.Comonad.Density

Package
purescript-density-codensity
Repository
rightfold/purescript-density-codensity

Density comonad.

#DensityF Source

data DensityF f a b

Helper for existential quantification.

Constructors

#Density Source

newtype Density f a

Density comonad.

Constructors

Instances

#mkDensity Source

mkDensity :: forall b a f. (f b -> a) -> f b -> Density f a

Alternative Density constructor.

#liftDensity Source

liftDensity :: forall a f. Comonad f => f a -> Density f a

#lowerDensity Source

lowerDensity :: forall a f. Comonad f => Density f a -> f a