hs-functors-0.1.0.0: Functors from products of Haskell and its dual to Haskell

Safe HaskellNone
LanguageHaskell2010

Data.Functor.Contravariant

Documentation

class Functor f where Source #

Minimal complete definition

gmap

Methods

gmap :: (a -> b) -> f b -> f a Source #

(>$) :: b -> f b -> f a Source #

Instances

Functor (Proxy *) Source # 

Methods

gmap :: (a -> b) -> Proxy * b -> Proxy * a Source #

(>$) :: b -> Proxy * b -> Proxy * a Source #

Functor (Op2 a) Source # 

Methods

gmap :: (a -> b) -> Op2 a b -> Op2 a a Source #

(>$) :: b -> Op2 a b -> Op2 a a Source #

Functor (Op1 a) Source # 

Methods

gmap :: (a -> b) -> Op1 a b -> Op1 a a Source #

(>$) :: b -> Op1 a b -> Op1 a a Source #

Functor (Const * a) Source # 

Methods

gmap :: (a -> b) -> Const * a b -> Const * a a Source #

(>$) :: b -> Const * a b -> Const * a a Source #

Functor f => Functor (Alt * f) Source # 

Methods

gmap :: (a -> b) -> Alt * f b -> Alt * f a Source #

(>$) :: b -> Alt * f b -> Alt * f a Source #

Functor f => Functor (Reverse * f) Source # 

Methods

gmap :: (a -> b) -> Reverse * f b -> Reverse * f a Source #

(>$) :: b -> Reverse * f b -> Reverse * f a Source #

Functor f => Functor (Backwards * f) Source # 

Methods

gmap :: (a -> b) -> Backwards * f b -> Backwards * f a Source #

(>$) :: b -> Backwards * f b -> Backwards * f a Source #

Functor f => Functor (WriterT w f) Source # 

Methods

gmap :: (a -> b) -> WriterT w f b -> WriterT w f a Source #

(>$) :: b -> WriterT w f b -> WriterT w f a Source #

Functor f => Functor (StateT s f) Source # 

Methods

gmap :: (a -> b) -> StateT s f b -> StateT s f a Source #

(>$) :: b -> StateT s f b -> StateT s f a Source #

Functor f => Functor (ExceptT e f) Source # 

Methods

gmap :: (a -> b) -> ExceptT e f b -> ExceptT e f a Source #

(>$) :: b -> ExceptT e f b -> ExceptT e f a Source #

(Functor f, Functor g) => Functor (Sum * f g) Source # 

Methods

gmap :: (a -> b) -> Sum * f g b -> Sum * f g a Source #

(>$) :: b -> Sum * f g b -> Sum * f g a Source #

(Functor f, Functor g) => Functor (Product * f g) Source # 

Methods

gmap :: (a -> b) -> Product * f g b -> Product * f g a Source #

(>$) :: b -> Product * f g b -> Product * f g a Source #

Functor f => Functor (ReaderT * r f) Source # 

Methods

gmap :: (a -> b) -> ReaderT * r f b -> ReaderT * r f a Source #

(>$) :: b -> ReaderT * r f b -> ReaderT * r f a Source #

(>$<) :: Functor f => (a -> b) -> f b -> f a Source #

newtype Op1 b a Source #

Constructors

Op1 

Fields

  • op1 :: a -> b
     

Instances

Functor (Op1 a) Source # 

Methods

gmap :: (a -> b) -> Op1 a b -> Op1 a a Source #

(>$) :: b -> Op1 a b -> Op1 a a Source #

newtype Op2 b a Source #

Constructors

Op2 

Fields

  • op2 :: a -> a -> b
     

Instances

Functor (Op2 a) Source # 

Methods

gmap :: (a -> b) -> Op2 a b -> Op2 a a Source #

(>$) :: b -> Op2 a b -> Op2 a a Source #