bifunctors-5.5.2: Bifunctors
Data.Bifunctor.Sum
data Sum p q a b Source #
Constructors
Defined in Data.Bifunctor.Sum
Methods
bifmap :: (p0 :-> q) -> Sum p p0 :-> Sum p q Source #
bireturn :: p0 a b -> Sum p p0 a b Source #
bibind :: (p0 :-> Sum p q) -> Sum p p0 :-> Sum p q Source #
bijoin :: Sum p (Sum p p0) a b -> Sum p p0 a b Source #
Associated Types
type Rep1 (Sum p q a) :: k -> * #
from1 :: Sum p q a a0 -> Rep1 (Sum p q a) a0 #
to1 :: Rep1 (Sum p q a) a0 -> Sum p q a a0 #
bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Sum p q a b -> f (Sum p q c d) #
bifold :: Monoid m => Sum p q m m -> m #
bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Sum p q a b -> m #
bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Sum p q a b -> c #
bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Sum p q a b -> c #
bimap :: (a -> b) -> (c -> d) -> Sum p q a c -> Sum p q b d #
first :: (a -> b) -> Sum p q a c -> Sum p q b c #
second :: (b -> c) -> Sum p q a b -> Sum p q a c #
(==) :: Sum p q a b -> Sum p q a b -> Bool #
(/=) :: Sum p q a b -> Sum p q a b -> Bool #
compare :: Sum p q a b -> Sum p q a b -> Ordering #
(<) :: Sum p q a b -> Sum p q a b -> Bool #
(<=) :: Sum p q a b -> Sum p q a b -> Bool #
(>) :: Sum p q a b -> Sum p q a b -> Bool #
(>=) :: Sum p q a b -> Sum p q a b -> Bool #
max :: Sum p q a b -> Sum p q a b -> Sum p q a b #
min :: Sum p q a b -> Sum p q a b -> Sum p q a b #
readsPrec :: Int -> ReadS (Sum p q a b) #
readList :: ReadS [Sum p q a b] #
readPrec :: ReadPrec (Sum p q a b) #
readListPrec :: ReadPrec [Sum p q a b] #
showsPrec :: Int -> Sum p q a b -> ShowS #
show :: Sum p q a b -> String #
showList :: [Sum p q a b] -> ShowS #
type Rep (Sum p q a b) :: * -> * #
from :: Sum p q a b -> Rep (Sum p q a b) x #
to :: Rep (Sum p q a b) x -> Sum p q a b #