category-extras-0.53.6: Various modules and constructs inspired by category theoryContentsIndex
Control.Functor.Zap
Portabilitynon-portable (functional-dependencies)
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Description
Dual (bi)Functors
Synopsis
class Zap f g | f -> g, g -> f where
zapWith :: (a -> b -> c) -> f a -> g b -> c
zap :: f (a -> b) -> g a -> b
(>$<) :: Zap f g => f (a -> b) -> g a -> b
class Bizap p q | p -> q, q -> p where
bizapWith :: (a -> c -> e) -> (b -> d -> e) -> p a b -> q c d -> e
bizap :: p (a -> c) (b -> c) -> q a b -> c
(>>$<<) :: Bizap p q => p (a -> c) (b -> c) -> q a b -> c
Documentation
class Zap f g | f -> g, g -> f where
Minimum definition: zapWith
Methods
zapWith :: (a -> b -> c) -> f a -> g b -> c
zap :: f (a -> b) -> g a -> b
show/hide Instances
Zap (Reader e) (Coreader e)
(>$<) :: Zap f g => f (a -> b) -> g a -> b
class Bizap p q | p -> q, q -> p where
Minimum definition: bizapWith
Methods
bizapWith :: (a -> c -> e) -> (b -> d -> e) -> p a b -> q c d -> e
bizap :: p (a -> c) (b -> c) -> q a b -> c
show/hide Instances
(Bizap p q, Zap f g, Zap i j) => Bizap (Biff p f i) (Biff q g j)
(>>$<<) :: Bizap p q => p (a -> c) (b -> c) -> q a b -> c
Produced by Haddock version 2.1.0