Copyright | 2008-2010 Edward Kmett |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable (functional-dependencies) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Control.Categorical.Functor
Description
A more categorical definition of Functor
Documentation
class (Category r, Category t) => Functor f r t | f r -> t, f t -> r where Source #
Instances
Functor IO (->) (->) Source # | |
Functor Maybe (->) (->) Source # | |
Functor [] (->) (->) Source # | |
Defined in Control.Categorical.Functor | |
Functor (Either a) (->) (->) Source # | |
Functor f => Functor (LiftedFunctor f) (->) (->) Source # | |
Defined in Control.Categorical.Functor Methods fmap :: (a -> b) -> LiftedFunctor f a -> LiftedFunctor f b Source # | |
Functor ((,) a) (->) (->) Source # | |
Defined in Control.Categorical.Functor |
class Functor f a a => Endofunctor f a Source #
Instances
Functor f a a => Endofunctor f a Source # | |
Defined in Control.Categorical.Functor |
newtype LiftedFunctor f a Source #
Constructors
LiftedFunctor (f a) |
Instances
Functor f => Functor (LiftedFunctor f) (->) (->) Source # | |
Defined in Control.Categorical.Functor Methods fmap :: (a -> b) -> LiftedFunctor f a -> LiftedFunctor f b Source # | |
(Typeable f, Data (f a), Data a) => Data (LiftedFunctor f a) Source # | |
Defined in Control.Categorical.Functor Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LiftedFunctor f a -> c (LiftedFunctor f a) Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (LiftedFunctor f a) Source # toConstr :: LiftedFunctor f a -> Constr Source # dataTypeOf :: LiftedFunctor f a -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (LiftedFunctor f a)) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (LiftedFunctor f a)) Source # gmapT :: (forall b. Data b => b -> b) -> LiftedFunctor f a -> LiftedFunctor f a Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LiftedFunctor f a -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LiftedFunctor f a -> r Source # gmapQ :: (forall d. Data d => d -> u) -> LiftedFunctor f a -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> LiftedFunctor f a -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> LiftedFunctor f a -> m (LiftedFunctor f a) Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LiftedFunctor f a -> m (LiftedFunctor f a) Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LiftedFunctor f a -> m (LiftedFunctor f a) Source # | |
Read (f a) => Read (LiftedFunctor f a) Source # | |
Defined in Control.Categorical.Functor Methods readsPrec :: Int -> ReadS (LiftedFunctor f a) Source # readList :: ReadS [LiftedFunctor f a] Source # readPrec :: ReadPrec (LiftedFunctor f a) Source # readListPrec :: ReadPrec [LiftedFunctor f a] Source # | |
Show (f a) => Show (LiftedFunctor f a) Source # | |
Defined in Control.Categorical.Functor |
newtype LoweredFunctor f a Source #
Constructors
LoweredFunctor (f a) |