category-extras-0.53.6: Various modules and constructs inspired by category theoryContentsIndex
Control.Functor.Pointed
Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Documentation
class Functor f => Pointed f where
Methods
point :: a -> f a
show/hide Instances
(Bifunctor f Hask Hask Hask, PPointed f) => Pointed (Fix f)
Functor f => Pointed (Ideal f)
Pointed f => Pointed (CoYoneda f)
Pointed f => Pointed (Yoneda f)
Pointed (Codensity f)
(HPointed h, Pointed f) => Pointed (LowerH h f)
Pointed f => Pointed (EitherT a f)
Pointed (IxCont i i)
(Pointed f, Pointed g) => Pointed (f :*: g)
Adjunction f g => Pointed (ACompF g f)
(Pointed mw, Pointed f) => Pointed (PostCompF mw f)
(Pointed f, Pointed mw) => Pointed (PreCompF f mw)
(Pointed f, Pointed g) => Pointed (DistCompF f g)
(Pointed f, Pointed g) => Pointed (PointedCompF f g)
Monoid t => Pointed (Const2 t a)
Monad m => Pointed (IxContT m i i)
(Pointed f, Pointed (p a)) => Pointed (Of f p a)
class Functor f => Copointed f where
Methods
extract :: f a -> a
show/hide Instances
class PFunctor f Hask Hask => PPointed f where
Methods
preturn :: a -> f a c
show/hide Instances
ContraFunctor h => PPointed (PHyper h)
FunctorPlus f => PPointed (PCofree f)
Functor f => PPointed (PFree f)
Monoid t => PPointed (Const2 t)
(Pointed f, PPointed p) => PPointed (Of f p)
class PFunctor f Hask Hask => PCopointed f where
Methods
pextract :: f a c -> a
show/hide Instances
Functor f => PCopointed (PCofree f)
(Copointed f, PCopointed p) => PCopointed (Of f p)
Produced by Haddock version 2.1.0