| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Yaya.Functor
Description
This should probably be a separate library, but it provides a number of functor type classes between various categories.
Documentation
class DFunctor (d :: (Type -> Type) -> Type) where Source #
A functor from the category of endofunctors to *Hask*. The D is meant to
be a mnemonic for “down”, as we’re “lowering” from endofunctors to types.
class HFunctor (h :: (Type -> Type) -> Type -> Type) where Source #
An endofunctor in the category of endofunctors.
NB: This is similar to MFunctor /
hoist from mmorph, but without the
Monad constraint on f.
Instances
| HFunctor Lift Source # | |
| HFunctor MaybeT Source # | |
| HFunctor (Backwards :: (Type -> Type) -> Type -> Type) Source # | |
| HFunctor (ExceptT e) Source # | |
| HFunctor (IdentityT :: (Type -> Type) -> Type -> Type) Source # | |
| HFunctor (ReaderT r) Source # | |
| HFunctor (StateT s) Source # | |
| HFunctor (StateT s) Source # | |
| HFunctor (WriterT w) Source # | |
| HFunctor (WriterT w) Source # | |
| HFunctor (Product f) Source # | |
| Functor f => HFunctor (Compose f :: (Type -> Type) -> Type -> Type) Source # | |
| HFunctor (RWST r w s) Source # | |
| HFunctor (RWST r w s) Source # | |