bifunctors-5.5.3: Bifunctors

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

Data.Bifunctor.Tannen

Description

 
Synopsis

Documentation

newtype Tannen f p a b Source #

Compose a Functor on the outside of a Bifunctor.

Constructors

Tannen 

Fields

Instances
Functor f => BifunctorFunctor (Tannen f :: (k1 -> k2 -> *) -> k1 -> k2 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bifmap :: (p :-> q) -> Tannen f p :-> Tannen f q Source #

Comonad f => BifunctorComonad (Tannen f :: (k1 -> k2 -> *) -> k1 -> k2 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

biextract :: Tannen f p a b -> p a b Source #

biextend :: (Tannen f p :-> q) -> Tannen f p :-> Tannen f q Source #

biduplicate :: Tannen f p a b -> Tannen f (Tannen f p) a b Source #

(Functor f, Monad f) => BifunctorMonad (Tannen f :: (k1 -> k2 -> *) -> k1 -> k2 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bireturn :: p a b -> Tannen f p a b Source #

bibind :: (p :-> Tannen f q) -> Tannen f p :-> Tannen f q Source #

bijoin :: Tannen f (Tannen f p) a b -> Tannen f p a b Source #

(Applicative f, Category p) => Category (Tannen f p :: k -> k -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

id :: Tannen f p a a #

(.) :: Tannen f p b c -> Tannen f p a b -> Tannen f p a c #

Functor f => Generic1 (Tannen f p a :: k2 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Associated Types

type Rep1 (Tannen f p a) :: k -> * #

Methods

from1 :: Tannen f p a a0 -> Rep1 (Tannen f p a) a0 #

to1 :: Rep1 (Tannen f p a) a0 -> Tannen f p a a0 #

(Traversable f, Bitraversable p) => Bitraversable (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bitraverse :: Applicative f0 => (a -> f0 c) -> (b -> f0 d) -> Tannen f p a b -> f0 (Tannen f p c d) #

(Foldable f, Bifoldable p) => Bifoldable (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bifold :: Monoid m => Tannen f p m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Tannen f p a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Tannen f p a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Tannen f p a b -> c #

(Functor f, Bifunctor p) => Bifunctor (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bimap :: (a -> b) -> (c -> d) -> Tannen f p a c -> Tannen f p b d #

first :: (a -> b) -> Tannen f p a c -> Tannen f p b c #

second :: (b -> c) -> Tannen f p a b -> Tannen f p a c #

(Applicative f, Arrow p) => Arrow (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

arr :: (b -> c) -> Tannen f p b c #

first :: Tannen f p b c -> Tannen f p (b, d) (c, d) #

second :: Tannen f p b c -> Tannen f p (d, b) (d, c) #

(***) :: Tannen f p b c -> Tannen f p b' c' -> Tannen f p (b, b') (c, c') #

(&&&) :: Tannen f p b c -> Tannen f p b c' -> Tannen f p b (c, c') #

(Applicative f, ArrowZero p) => ArrowZero (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

zeroArrow :: Tannen f p b c #

(Applicative f, ArrowPlus p) => ArrowPlus (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

(<+>) :: Tannen f p b c -> Tannen f p b c -> Tannen f p b c #

(Applicative f, ArrowChoice p) => ArrowChoice (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

left :: Tannen f p b c -> Tannen f p (Either b d) (Either c d) #

right :: Tannen f p b c -> Tannen f p (Either d b) (Either d c) #

(+++) :: Tannen f p b c -> Tannen f p b' c' -> Tannen f p (Either b b') (Either c c') #

(|||) :: Tannen f p b d -> Tannen f p c d -> Tannen f p (Either b c) d #

(Applicative f, ArrowLoop p) => ArrowLoop (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

loop :: Tannen f p (b, d) (c, d) -> Tannen f p b c #

(Applicative f, Biapplicative p) => Biapplicative (Tannen f p) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

bipure :: a -> b -> Tannen f p a b Source #

(<<*>>) :: Tannen f p (a -> b) (c -> d) -> Tannen f p a c -> Tannen f p b d Source #

biliftA2 :: (a -> b -> c) -> (d -> e -> f0) -> Tannen f p a d -> Tannen f p b e -> Tannen f p c f0 Source #

(*>>) :: Tannen f p a b -> Tannen f p c d -> Tannen f p c d Source #

(<<*) :: Tannen f p a b -> Tannen f p c d -> Tannen f p a b Source #

(Functor f, Bifunctor p) => Functor (Tannen f p a) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

fmap :: (a0 -> b) -> Tannen f p a a0 -> Tannen f p a b #

(<$) :: a0 -> Tannen f p a b -> Tannen f p a a0 #

(Foldable f, Bifoldable p) => Foldable (Tannen f p a) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

fold :: Monoid m => Tannen f p a m -> m #

foldMap :: Monoid m => (a0 -> m) -> Tannen f p a a0 -> m #

foldr :: (a0 -> b -> b) -> b -> Tannen f p a a0 -> b #

foldr' :: (a0 -> b -> b) -> b -> Tannen f p a a0 -> b #

foldl :: (b -> a0 -> b) -> b -> Tannen f p a a0 -> b #

foldl' :: (b -> a0 -> b) -> b -> Tannen f p a a0 -> b #

foldr1 :: (a0 -> a0 -> a0) -> Tannen f p a a0 -> a0 #

foldl1 :: (a0 -> a0 -> a0) -> Tannen f p a a0 -> a0 #

toList :: Tannen f p a a0 -> [a0] #

null :: Tannen f p a a0 -> Bool #

length :: Tannen f p a a0 -> Int #

elem :: Eq a0 => a0 -> Tannen f p a a0 -> Bool #

maximum :: Ord a0 => Tannen f p a a0 -> a0 #

minimum :: Ord a0 => Tannen f p a a0 -> a0 #

sum :: Num a0 => Tannen f p a a0 -> a0 #

product :: Num a0 => Tannen f p a a0 -> a0 #

(Traversable f, Bitraversable p) => Traversable (Tannen f p a) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

traverse :: Applicative f0 => (a0 -> f0 b) -> Tannen f p a a0 -> f0 (Tannen f p a b) #

sequenceA :: Applicative f0 => Tannen f p a (f0 a0) -> f0 (Tannen f p a a0) #

mapM :: Monad m => (a0 -> m b) -> Tannen f p a a0 -> m (Tannen f p a b) #

sequence :: Monad m => Tannen f p a (m a0) -> m (Tannen f p a a0) #

Eq (f (p a b)) => Eq (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

(==) :: Tannen f p a b -> Tannen f p a b -> Bool #

(/=) :: Tannen f p a b -> Tannen f p a b -> Bool #

Ord (f (p a b)) => Ord (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

compare :: Tannen f p a b -> Tannen f p a b -> Ordering #

(<) :: Tannen f p a b -> Tannen f p a b -> Bool #

(<=) :: Tannen f p a b -> Tannen f p a b -> Bool #

(>) :: Tannen f p a b -> Tannen f p a b -> Bool #

(>=) :: Tannen f p a b -> Tannen f p a b -> Bool #

max :: Tannen f p a b -> Tannen f p a b -> Tannen f p a b #

min :: Tannen f p a b -> Tannen f p a b -> Tannen f p a b #

Read (f (p a b)) => Read (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

readsPrec :: Int -> ReadS (Tannen f p a b) #

readList :: ReadS [Tannen f p a b] #

readPrec :: ReadPrec (Tannen f p a b) #

readListPrec :: ReadPrec [Tannen f p a b] #

Show (f (p a b)) => Show (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Methods

showsPrec :: Int -> Tannen f p a b -> ShowS #

show :: Tannen f p a b -> String #

showList :: [Tannen f p a b] -> ShowS #

Generic (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

Associated Types

type Rep (Tannen f p a b) :: * -> * #

Methods

from :: Tannen f p a b -> Rep (Tannen f p a b) x #

to :: Rep (Tannen f p a b) x -> Tannen f p a b #

type Rep1 (Tannen f p a :: k1 -> *) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

type Rep1 (Tannen f p a :: k1 -> *) = D1 (MetaData "Tannen" "Data.Bifunctor.Tannen" "bifunctors-5.5.3-C6ZpRcwIkW2G7uSQuXu3CK" True) (C1 (MetaCons "Tannen" PrefixI True) (S1 (MetaSel (Just "runTannen") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (f :.: Rec1 (p a))))
type Rep (Tannen f p a b) Source # 
Instance details

Defined in Data.Bifunctor.Tannen

type Rep (Tannen f p a b) = D1 (MetaData "Tannen" "Data.Bifunctor.Tannen" "bifunctors-5.5.3-C6ZpRcwIkW2G7uSQuXu3CK" True) (C1 (MetaCons "Tannen" PrefixI True) (S1 (MetaSel (Just "runTannen") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (f (p a b)))))