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

Safe HaskellSafe
LanguageHaskell2010

Data.Functor.Yoneda

Documentation

newtype Yoneda (t :: * -> *) (a :: *) Source #

Constructors

Yoneda 

Fields

  • yoneda :: forall b. (a -> b) -> t b
     
Instances
Liftable Yoneda Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

lift :: Covariant u => u a -> Yoneda u a Source #

Lowerable Yoneda Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

lower :: Covariant u => Yoneda u a -> u a Source #

Covariant (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

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

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

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

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

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

Alternative t => Alternative (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(<+>) :: Yoneda t a -> Yoneda t a -> Yoneda t a Source #

alter :: Yoneda t a -> Yoneda t a -> Yoneda t a Source #

Applicative t => Applicative (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(<*>) :: Yoneda t (a -> b) -> Yoneda t a -> Yoneda t b Source #

apply :: Yoneda t (a -> b) -> Yoneda t a -> Yoneda t b Source #

(*>) :: Yoneda t a -> Yoneda t b -> Yoneda t b Source #

(<*) :: Yoneda t a -> Yoneda t b -> Yoneda t a Source #

forever :: Yoneda t a -> Yoneda t b Source #

Exclusive t => Exclusive (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

exclusive :: Yoneda t a Source #

Extractable t => Extractable (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

extract :: Yoneda t a -> a Source #

Pointable t => Pointable (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

point :: a -> Yoneda t a Source #

Traversable t => Traversable (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(->>) :: (Pointable u, Applicative u) => Yoneda t a -> (a -> u b) -> (u :.: Yoneda t) b Source #

traverse :: (Pointable u, Applicative u) => (a -> u b) -> Yoneda t a -> (u :.: Yoneda t) b Source #

sequence :: (Pointable u, Applicative u) => (Yoneda t :.: u) a -> (u :.: Yoneda t) a Source #

Extendable t => Extendable (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(=>>) :: Yoneda t a -> (Yoneda t a -> b) -> Yoneda t b Source #

(<<=) :: (Yoneda t a -> b) -> Yoneda t a -> Yoneda t b Source #

extend :: (Yoneda t a -> b) -> Yoneda t a -> Yoneda t b Source #

duplicate :: Yoneda t a -> (Yoneda t :.: Yoneda t) a Source #

(=<=) :: (Yoneda t b -> c) -> (Yoneda t a -> b) -> Yoneda t a -> c Source #

(=>=) :: (Yoneda t a -> b) -> (Yoneda t b -> c) -> Yoneda t a -> c Source #

Distributive t => Distributive (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(>>-) :: Covariant t0 => t0 a -> (a -> Yoneda t b) -> (Yoneda t :.: t0) b Source #

collect :: Covariant t0 => (a -> Yoneda t b) -> t0 a -> (Yoneda t :.: t0) b Source #

distribute :: Covariant t0 => (t0 :.: Yoneda t) a -> (Yoneda t :.: t0) a Source #

Bindable t => Bindable (Yoneda t) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

(>>=) :: Yoneda t a -> (a -> Yoneda t b) -> Yoneda t b Source #

(=<<) :: (a -> Yoneda t b) -> Yoneda t a -> Yoneda t b Source #

bind :: (a -> Yoneda t b) -> Yoneda t a -> Yoneda t b Source #

join :: (Yoneda t :.: Yoneda t) a -> Yoneda t a Source #

(>=>) :: (a -> Yoneda t b) -> (b -> Yoneda t c) -> a -> Yoneda t c Source #

(<=<) :: (b -> Yoneda t c) -> (a -> Yoneda t b) -> a -> Yoneda t c Source #

(Extractable t, Pointable t, Extractable u, Pointable u) => Adjoint (Yoneda t) (Yoneda u) Source # 
Instance details

Defined in Data.Functor.Yoneda

Methods

phi :: (Yoneda t a -> b) -> a -> Yoneda u b Source #

psi :: (a -> Yoneda u b) -> Yoneda t a -> b Source #

eta :: a -> (Yoneda u :.: Yoneda t) a Source #

epsilon :: (Yoneda t :.: Yoneda u) a -> a Source #