Copyright | (C) 2008-2016 Jesse Selover Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
The product of two bifunctors.
Documentation
Form the product of two bifunctors
Pair (f a b) (g a b) |
Instances
BifunctorFunctor (Product p :: (k2 -> k3 -> Type) -> k2 -> k3 -> Type) Source # | |
BifunctorComonad (Product p :: (k -> k1 -> Type) -> k -> k1 -> Type) Source # | |
Defined in Data.Bifunctor.Product biextract :: forall (p0 :: k0 -> k10 -> Type). Product p p0 :-> p0 Source # biextend :: forall (p0 :: k0 -> k10 -> Type) (q :: k0 -> k10 -> Type). (Product p p0 :-> q) -> Product p p0 :-> Product p q Source # biduplicate :: forall (p0 :: k0 -> k10 -> Type). Product p p0 :-> Product p (Product p p0) Source # | |
(Category p, Category q) => Category (Product p q :: k -> k -> Type) Source # | |
Generic1 (Product f g a :: k1 -> Type) Source # | |
(Swap p, Swap q) => Swap (Product p q) Source # | Since: 5.6.1 |
Defined in Data.Bifunctor.Product | |
(Arrow p, Arrow q) => Arrow (Product p q) Source # | |
Defined in Data.Bifunctor.Product | |
(ArrowChoice p, ArrowChoice q) => ArrowChoice (Product p q) Source # | |
Defined in Data.Bifunctor.Product | |
(ArrowLoop p, ArrowLoop q) => ArrowLoop (Product p q) Source # | |
Defined in Data.Bifunctor.Product | |
(ArrowPlus p, ArrowPlus q) => ArrowPlus (Product p q) Source # | |
(ArrowZero p, ArrowZero q) => ArrowZero (Product p q) Source # | |
Defined in Data.Bifunctor.Product | |
(Bifoldable f, Bifoldable g) => Bifoldable (Product f g) Source # | |
(Bifoldable1 f, Bifoldable1 g) => Bifoldable1 (Product f g) Source # | |
Defined in Data.Bifunctor.Product | |
(Bifunctor f, Bifunctor g) => Bifunctor (Product f g) Source # | |
(Bitraversable f, Bitraversable g) => Bitraversable (Product f g) Source # | |
Defined in Data.Bifunctor.Product bitraverse :: Applicative f0 => (a -> f0 c) -> (b -> f0 d) -> Product f g a b -> f0 (Product f g c d) # | |
(Eq2 f, Eq2 g) => Eq2 (Product f g) Source # | |
(Ord2 f, Ord2 g) => Ord2 (Product f g) Source # | |
Defined in Data.Bifunctor.Product | |
(Read2 f, Read2 g) => Read2 (Product f g) Source # | |
Defined in Data.Bifunctor.Product liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (Product f g a b) # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [Product f g a b] # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (Product f g a b) # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [Product f g a b] # | |
(Show2 f, Show2 g) => Show2 (Product f g) Source # | |
(Biapplicative f, Biapplicative g) => Biapplicative (Product f g) Source # | |
Defined in Data.Bifunctor.Product bipure :: a -> b -> Product f g a b Source # (<<*>>) :: Product f g (a -> b) (c -> d) -> Product f g a c -> Product f g b d Source # biliftA2 :: (a -> b -> c) -> (d -> e -> f0) -> Product f g a d -> Product f g b e -> Product f g c f0 Source # (*>>) :: Product f g a b -> Product f g c d -> Product f g c d Source # (<<*) :: Product f g a b -> Product f g c d -> Product f g a b Source # | |
(Foldable (f a), Foldable (g a)) => Foldable (Product f g a) Source # | |
Defined in Data.Bifunctor.Product fold :: Monoid m => Product f g a m -> m # foldMap :: Monoid m => (a0 -> m) -> Product f g a a0 -> m # foldMap' :: Monoid m => (a0 -> m) -> Product f g a a0 -> m # foldr :: (a0 -> b -> b) -> b -> Product f g a a0 -> b # foldr' :: (a0 -> b -> b) -> b -> Product f g a a0 -> b # foldl :: (b -> a0 -> b) -> b -> Product f g a a0 -> b # foldl' :: (b -> a0 -> b) -> b -> Product f g a a0 -> b # foldr1 :: (a0 -> a0 -> a0) -> Product f g a a0 -> a0 # foldl1 :: (a0 -> a0 -> a0) -> Product f g a a0 -> a0 # toList :: Product f g a a0 -> [a0] # null :: Product f g a a0 -> Bool # length :: Product f g a a0 -> Int # elem :: Eq a0 => a0 -> Product f g a a0 -> Bool # maximum :: Ord a0 => Product f g a a0 -> a0 # minimum :: Ord a0 => Product f g a a0 -> a0 # | |
(Eq2 f, Eq2 g, Eq a) => Eq1 (Product f g a) Source # | |
(Ord2 f, Ord2 g, Ord a) => Ord1 (Product f g a) Source # | |
Defined in Data.Bifunctor.Product | |
(Read2 f, Read2 g, Read a) => Read1 (Product f g a) Source # | |
Defined in Data.Bifunctor.Product liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (Product f g a a0) # liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [Product f g a a0] # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (Product f g a a0) # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [Product f g a a0] # | |
(Show2 f, Show2 g, Show a) => Show1 (Product f g a) Source # | |
(Traversable (f a), Traversable (g a)) => Traversable (Product f g a) Source # | |
Defined in Data.Bifunctor.Product traverse :: Applicative f0 => (a0 -> f0 b) -> Product f g a a0 -> f0 (Product f g a b) # sequenceA :: Applicative f0 => Product f g a (f0 a0) -> f0 (Product f g a a0) # mapM :: Monad m => (a0 -> m b) -> Product f g a a0 -> m (Product f g a b) # sequence :: Monad m => Product f g a (m a0) -> m (Product f g a a0) # | |
(Functor (f a), Functor (g a)) => Functor (Product f g a) Source # | |
Generic (Product f g a b) Source # | |
(Read (f a b), Read (g a b)) => Read (Product f g a b) Source # | |
(Show (f a b), Show (g a b)) => Show (Product f g a b) Source # | |
(Eq (f a b), Eq (g a b)) => Eq (Product f g a b) Source # | |
(Ord (f a b), Ord (g a b)) => Ord (Product f g a b) Source # | |
Defined in Data.Bifunctor.Product compare :: Product f g a b -> Product f g a b -> Ordering # (<) :: Product f g a b -> Product f g a b -> Bool # (<=) :: Product f g a b -> Product f g a b -> Bool # (>) :: Product f g a b -> Product f g a b -> Bool # (>=) :: Product f g a b -> Product f g a b -> Bool # max :: Product f g a b -> Product f g a b -> Product f g a b # min :: Product f g a b -> Product f g a b -> Product f g a b # | |
type Rep1 (Product f g a :: k1 -> Type) Source # | |
Defined in Data.Bifunctor.Product type Rep1 (Product f g a :: k1 -> Type) = D1 ('MetaData "Product" "Data.Bifunctor.Product" "bifunctors-5.6.2-K1AOrL3x2V3D478fs2jwey" 'False) (C1 ('MetaCons "Pair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 (f a)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 (g a)))) | |
type Rep (Product f g a b) Source # | |
Defined in Data.Bifunctor.Product type Rep (Product f g a b) = D1 ('MetaData "Product" "Data.Bifunctor.Product" "bifunctors-5.6.2-K1AOrL3x2V3D478fs2jwey" 'False) (C1 ('MetaCons "Pair" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (f a b)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (g a b)))) |