ghc-8.4.0.20171214: The GHC API

Safe HaskellNone
LanguageHaskell2010

Pair

Documentation

data Pair a Source #

Constructors

Pair 

Fields

Instances
Functor Pair # 
Instance details

Methods

fmap :: (a -> b) -> Pair a -> Pair b Source #

(<$) :: a -> Pair b -> Pair a Source #

Applicative Pair # 
Instance details

Methods

pure :: a -> Pair a Source #

(<*>) :: Pair (a -> b) -> Pair a -> Pair b Source #

liftA2 :: (a -> b -> c) -> Pair a -> Pair b -> Pair c Source #

(*>) :: Pair a -> Pair b -> Pair b Source #

(<*) :: Pair a -> Pair b -> Pair a Source #

Foldable Pair # 
Instance details

Methods

fold :: Monoid m => Pair m -> m Source #

foldMap :: Monoid m => (a -> m) -> Pair a -> m Source #

foldr :: (a -> b -> b) -> b -> Pair a -> b Source #

foldr' :: (a -> b -> b) -> b -> Pair a -> b Source #

foldl :: (b -> a -> b) -> b -> Pair a -> b Source #

foldl' :: (b -> a -> b) -> b -> Pair a -> b Source #

foldr1 :: (a -> a -> a) -> Pair a -> a Source #

foldl1 :: (a -> a -> a) -> Pair a -> a Source #

toList :: Pair a -> [a] Source #

null :: Pair a -> Bool Source #

length :: Pair a -> Int Source #

elem :: Eq a => a -> Pair a -> Bool Source #

maximum :: Ord a => Pair a -> a Source #

minimum :: Ord a => Pair a -> a Source #

sum :: Num a => Pair a -> a Source #

product :: Num a => Pair a -> a Source #

Traversable Pair # 
Instance details

Methods

traverse :: Applicative f => (a -> f b) -> Pair a -> f (Pair b) Source #

sequenceA :: Applicative f => Pair (f a) -> f (Pair a) Source #

mapM :: Monad m => (a -> m b) -> Pair a -> m (Pair b) Source #

sequence :: Monad m => Pair (m a) -> m (Pair a) Source #

Semigroup a => Semigroup (Pair a) # 
Instance details

Methods

(<>) :: Pair a -> Pair a -> Pair a Source #

sconcat :: NonEmpty (Pair a) -> Pair a Source #

stimes :: Integral b => b -> Pair a -> Pair a Source #

(Semigroup a, Monoid a) => Monoid (Pair a) # 
Instance details

Methods

mempty :: Pair a Source #

mappend :: Pair a -> Pair a -> Pair a Source #

mconcat :: [Pair a] -> Pair a Source #

Outputable a => Outputable (Pair a) # 
Instance details

Methods

ppr :: Pair a -> SDoc Source #

pprPrec :: Rational -> Pair a -> SDoc Source #

unPair :: Pair a -> (a, a) Source #

toPair :: (a, a) -> Pair a Source #

swap :: Pair a -> Pair a Source #

pLiftFst :: (a -> a) -> Pair a -> Pair a Source #

pLiftSnd :: (a -> a) -> Pair a -> Pair a Source #