| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.GeneralisedFunctor.Functor
Description
Documentation
data OrdinaryFunctorParam f Source
Instances
| Functor f => Functor (OrdinaryFunctorParam f) Source | |
| type FunctorCategory (OrdinaryFunctorParam f) = (->) Source | |
| type FunctorOutput (OrdinaryFunctorParam f) t = f t Source | |
| type FunctorInput (OrdinaryFunctorParam f) (_1 t) = t Source |
type family FunctorParam c t' Source
Instances
Associated Types
type FunctorInput f t Source
type FunctorOutput f t Source
type FunctorCategory f :: * -> * -> * Source
Methods
fmap :: (Category c, f ~ FunctorParam c a', f ~ FunctorParam c b', a ~ FunctorInput f a', b ~ FunctorInput f b', a' ~ FunctorOutput f a, b' ~ FunctorOutput f b, c ~ FunctorCategory f) => c a b -> c a' b' Source
Instances
| Functor f => Functor (OrdinaryFunctorParam f) Source |
class ExoFunctor c c' where Source
Methods
exomap :: (Category c, Category c', a ~ ExoInput c c' a', b ~ ExoInput c c' b', a' ~ ExoOutput c c' a, b' ~ ExoOutput c c' b) => c a b -> c' a' b' Source
Instances
| ExoFunctor (->) (->) Source | |
| Monad m => ExoFunctor (->) (Kleisli m) Source | |
| Monad m => ExoFunctor (Kleisli m) (->) Source | |
| ExoFunctor (Kleisli m) (Kleisli m) Source |
type family ContraFunctorParam c t' Source
Instances
| type ContraFunctorParam (->) (_1 -> r) Source |
class ContraFunctor f where Source
Associated Types
type ContraFunctorInput f t' Source
type ContraFunctorOutput f t' Source
type ContraFunctorCategory f :: * -> * -> * Source
Methods
contramap :: (Category c, f ~ ContraFunctorParam c a', f ~ ContraFunctorParam c b', a ~ ContraFunctorInput f a', b ~ ContraFunctorInput f b', a' ~ ContraFunctorOutput f a, b' ~ ContraFunctorOutput f b, c ~ ContraFunctorCategory f) => c a b -> c b' a' Source
class ExoContraFunctor c c' where Source
Methods
exocontramap :: (Category c, Category c', a ~ ExoContraInput c c' a', b ~ ExoContraInput c c' b', a' ~ ExoContraOutput c c' a, b' ~ ExoContraOutput c c' b) => c a b -> c' b' a' Source