ghc-8.2.2: The GHC API
Pair
data Pair a Source #
Constructors
Fields
Instances
Methods
fmap :: (a -> b) -> Pair a -> Pair b #
(<$) :: a -> Pair b -> Pair a #
pure :: a -> Pair a #
(<*>) :: Pair (a -> b) -> Pair a -> Pair b #
liftA2 :: (a -> b -> c) -> Pair a -> Pair b -> Pair c #
(*>) :: Pair a -> Pair b -> Pair b #
(<*) :: Pair a -> Pair b -> Pair a #
fold :: Monoid m => Pair m -> m #
foldMap :: Monoid m => (a -> m) -> Pair a -> m #
foldr :: (a -> b -> b) -> b -> Pair a -> b #
foldr' :: (a -> b -> b) -> b -> Pair a -> b #
foldl :: (b -> a -> b) -> b -> Pair a -> b #
foldl' :: (b -> a -> b) -> b -> Pair a -> b #
foldr1 :: (a -> a -> a) -> Pair a -> a #
foldl1 :: (a -> a -> a) -> Pair a -> a #
toList :: Pair a -> [a] #
null :: Pair a -> Bool #
length :: Pair a -> Int #
elem :: Eq a => a -> Pair a -> Bool #
maximum :: Ord a => Pair a -> a #
minimum :: Ord a => Pair a -> a #
sum :: Num a => Pair a -> a #
product :: Num a => Pair a -> a #
traverse :: Applicative f => (a -> f b) -> Pair a -> f (Pair b) #
sequenceA :: Applicative f => Pair (f a) -> f (Pair a) #
mapM :: Monad m => (a -> m b) -> Pair a -> m (Pair b) #
sequence :: Monad m => Pair (m a) -> m (Pair a) #
mempty :: Pair a #
mappend :: Pair a -> Pair a -> Pair a #
mconcat :: [Pair a] -> Pair a #
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 #