bifunctors-5.5.11: Bifunctors
Copyright(C) 2008-2016 Jesse Selover Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

Data.Bifunctor.Product

Description

The product of two bifunctors.

Synopsis

Documentation

data Product f g a b #

Form the product of two bifunctors

Constructors

Pair (f a b) (g a b) 

Instances

Instances details
BifunctorFunctor (Product p :: (k1 -> k2 -> Type) -> k1 -> k2 -> Type) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bifmap :: forall (p0 :: k -> k -> Type) (q :: k -> k -> Type). (p0 :-> q) -> Product p p0 :-> Product p q #

BifunctorComonad (Product p :: (k1 -> k2 -> Type) -> k1 -> k2 -> Type) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

biextract :: forall (p0 :: k -> k -> Type). Product p p0 :-> p0 #

biextend :: forall (p0 :: k -> k -> Type) (q :: k -> k -> Type). (Product p p0 :-> q) -> Product p p0 :-> Product p q #

biduplicate :: forall (p0 :: k -> k -> Type). Product p p0 :-> Product p (Product p p0) #

(Category p, Category q) => Category (Product p q :: k -> k -> Type) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

id :: forall (a :: k0). Product p q a a #

(.) :: forall (b :: k0) (c :: k0) (a :: k0). Product p q b c -> Product p q a b -> Product p q a c #

Generic1 (Product f g a :: k1 -> Type) # 
Instance details

Defined in Data.Bifunctor.Product

Associated Types

type Rep1 (Product f g a) :: k -> Type #

Methods

from1 :: forall (a0 :: k). Product f g a a0 -> Rep1 (Product f g a) a0 #

to1 :: forall (a0 :: k). Rep1 (Product f g a) a0 -> Product f g a a0 #

(Bitraversable f, Bitraversable g) => Bitraversable (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bitraverse :: Applicative f0 => (a -> f0 c) -> (b -> f0 d) -> Product f g a b -> f0 (Product f g c d) #

(Bifoldable f, Bifoldable g) => Bifoldable (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bifold :: Monoid m => Product f g m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Product f g a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Product f g a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Product f g a b -> c #

(Bifunctor f, Bifunctor g) => Bifunctor (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bimap :: (a -> b) -> (c -> d) -> Product f g a c -> Product f g b d #

first :: (a -> b) -> Product f g a c -> Product f g b c #

second :: (b -> c) -> Product f g a b -> Product f g a c #

(Eq2 f, Eq2 g) => Eq2 (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftEq2 :: (a -> b -> Bool) -> (c -> d -> Bool) -> Product f g a c -> Product f g b d -> Bool #

(Ord2 f, Ord2 g) => Ord2 (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftCompare2 :: (a -> b -> Ordering) -> (c -> d -> Ordering) -> Product f g a c -> Product f g b d -> Ordering #

(Read2 f, Read2 g) => Read2 (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

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) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> Product f g a b -> ShowS #

liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [Product f g a b] -> ShowS #

(Arrow p, Arrow q) => Arrow (Product p q) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

arr :: (b -> c) -> Product p q b c #

first :: Product p q b c -> Product p q (b, d) (c, d) #

second :: Product p q b c -> Product p q (d, b) (d, c) #

(***) :: Product p q b c -> Product p q b' c' -> Product p q (b, b') (c, c') #

(&&&) :: Product p q b c -> Product p q b c' -> Product p q b (c, c') #

(ArrowZero p, ArrowZero q) => ArrowZero (Product p q) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

zeroArrow :: Product p q b c #

(ArrowPlus p, ArrowPlus q) => ArrowPlus (Product p q) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

(<+>) :: Product p q b c -> Product p q b c -> Product p q b c #

(ArrowChoice p, ArrowChoice q) => ArrowChoice (Product p q) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

left :: Product p q b c -> Product p q (Either b d) (Either c d) #

right :: Product p q b c -> Product p q (Either d b) (Either d c) #

(+++) :: Product p q b c -> Product p q b' c' -> Product p q (Either b b') (Either c c') #

(|||) :: Product p q b d -> Product p q c d -> Product p q (Either b c) d #

(ArrowLoop p, ArrowLoop q) => ArrowLoop (Product p q) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

loop :: Product p q (b, d) (c, d) -> Product p q b c #

(Biapplicative f, Biapplicative g) => Biapplicative (Product f g) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bipure :: a -> b -> Product f g a b #

(<<*>>) :: Product f g (a -> b) (c -> d) -> Product f g a c -> Product f g b d #

biliftA2 :: (a -> b -> c) -> (d -> e -> f0) -> Product f g a d -> Product f g b e -> Product f g c f0 #

(*>>) :: Product f g a b -> Product f g c d -> Product f g c d #

(<<*) :: Product f g a b -> Product f g c d -> Product f g a b #

(Eq2 f, Eq2 g, Eq a) => Eq1 (Product f g a) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftEq :: (a0 -> b -> Bool) -> Product f g a a0 -> Product f g a b -> Bool #

(Ord2 f, Ord2 g, Ord a) => Ord1 (Product f g a) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftCompare :: (a0 -> b -> Ordering) -> Product f g a a0 -> Product f g a b -> Ordering #

(Read2 f, Read2 g, Read a) => Read1 (Product f g a) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

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) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> Product f g a a0 -> ShowS #

liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [Product f g a a0] -> ShowS #

(Eq (f a b), Eq (g a b)) => Eq (Product f g a b) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

(==) :: Product f g a b -> Product f g a b -> Bool #

(/=) :: Product f g a b -> Product f g a b -> Bool #

(Ord (f a b), Ord (g a b)) => Ord (Product f g a b) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

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 #

(Read (f a b), Read (g a b)) => Read (Product f g a b) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

readsPrec :: Int -> ReadS (Product f g a b) #

readList :: ReadS [Product f g a b] #

readPrec :: ReadPrec (Product f g a b) #

readListPrec :: ReadPrec [Product f g a b] #

(Show (f a b), Show (g a b)) => Show (Product f g a b) # 
Instance details

Defined in Data.Bifunctor.Product

Methods

showsPrec :: Int -> Product f g a b -> ShowS #

show :: Product f g a b -> String #

showList :: [Product f g a b] -> ShowS #

Generic (Product f g a b) # 
Instance details

Defined in Data.Bifunctor.Product

Associated Types

type Rep (Product f g a b) :: Type -> Type #

Methods

from :: Product f g a b -> Rep (Product f g a b) x #

to :: Rep (Product f g a b) x -> Product f g a b #

type Rep1 (Product f g a :: k1 -> Type) # 
Instance details

Defined in Data.Bifunctor.Product

type Rep1 (Product f g a :: k1 -> Type) = D1 ('MetaData "Product" "Data.Bifunctor.Product" "bifunctors-5.5.11" '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) # 
Instance details

Defined in Data.Bifunctor.Product

type Rep (Product f g a b) = D1 ('MetaData "Product" "Data.Bifunctor.Product" "bifunctors-5.5.11" '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))))