Module
Data.Yoneda
- Package
- purescript-free
- Repository
- purescript/purescript-free
#Yoneda Source
newtype Yoneda :: (Type -> Type) -> Type -> Typenewtype Yoneda f a
The Yoneda Functor
Yoneda f is a Functor for any type constructor f.
Constructors
Yoneda (forall b. (a -> b) -> f b)
Instances
(Eq1 f, Eq a) => Eq (Yoneda f a)(Eq1 f) => Eq1 (Yoneda f)(Ord1 f, Ord a) => Ord (Yoneda f a)(Ord1 f) => Ord1 (Yoneda f)Functor (Yoneda f)(Apply f) => Apply (Yoneda f)(Applicative f) => Applicative (Yoneda f)(Bind f) => Bind (Yoneda f)(Monad f) => Monad (Yoneda f)MonadTrans Yoneda(Extend w) => Extend (Yoneda w)(Comonad w) => Comonad (Yoneda w)
#liftYoneda Source
liftYoneda :: forall f a. Functor f => f a -> Yoneda f aLift a value described by the Functor f to the Functor Yoneda f.
#lowerYoneda Source
lowerYoneda :: forall f a. Yoneda f a -> f aLower a value of type Yoneda f a to the type constructor f.