bifunctors-5.5.3: Bifunctors

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

Data.Bifunctor.Product

Description

The product of two bifunctors.

Synopsis

Documentation

data Product f g a b Source #

Form the product of two bifunctors

Constructors

Pair (f a b) (g a b) 
Instances
BifunctorFunctor (Product p :: (k1 -> k2 -> *) -> k1 -> k2 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Product

Methods

bifmap :: (p0 :-> q) -> Product p p0 :-> Product p q Source #

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

Defined in Data.Bifunctor.Product

Methods

biextract :: Product p p0 a b -> p0 a b Source #

biextend :: (Product p p0 :-> q) -> Product p p0 :-> Product p q Source #

biduplicate :: Product p p0 a b -> Product p (Product p p0) a b Source #

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

Defined in Data.Bifunctor.Product

Associated Types

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

Methods

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

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

(Bitraversable f, Bitraversable g) => Bitraversable (Product f g) Source # 
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) Source # 
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) Source # 
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 #

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

Defined in Data.Bifunctor.Product

Methods

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 #

(Eq (f a b), Eq (g a b)) => Eq (Product f g a b) Source # 
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) Source # 
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) Source # 
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) Source # 
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) Source # 
Instance details

Defined in Data.Bifunctor.Product

Associated Types

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

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

Defined in Data.Bifunctor.Product

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

Defined in Data.Bifunctor.Product

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