Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
Instances
BifunctorFunctor ( Sum p :: (k1 -> k2 -> Type ) -> k1 -> k2 -> Type ) Source # | |
BifunctorMonad ( Sum p :: (k1 -> k2 -> Type ) -> k1 -> k2 -> Type ) Source # | |
Generic1 ( Sum p q a :: k1 -> Type ) Source # | |
( Bitraversable p, Bitraversable q) => Bitraversable ( Sum p q) Source # | |
Defined in Data.Bifunctor.Sum bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Sum p q a b -> f ( Sum p q c d) Source # |
|
( Bifoldable p, Bifoldable q) => Bifoldable ( Sum p q) Source # | |
Defined in Data.Bifunctor.Sum |
|
( Bifunctor p, Bifunctor q) => Bifunctor ( Sum p q) Source # | |
( Eq2 f, Eq2 g) => Eq2 ( Sum f g) Source # | |
( Ord2 f, Ord2 g) => Ord2 ( Sum f g) Source # | |
Defined in Data.Bifunctor.Sum |
|
( Read2 f, Read2 g) => Read2 ( Sum f g) Source # | |
Defined in Data.Bifunctor.Sum liftReadsPrec2 :: ( Int -> ReadS a) -> ReadS [a] -> ( Int -> ReadS b) -> ReadS [b] -> Int -> ReadS ( Sum f g a b) Source # liftReadList2 :: ( Int -> ReadS a) -> ReadS [a] -> ( Int -> ReadS b) -> ReadS [b] -> ReadS [ Sum f g a b] Source # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec ( Sum f g a b) Source # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [ Sum f g a b] Source # |
|
( Show2 f, Show2 g) => Show2 ( Sum f g) Source # | |
Defined in Data.Bifunctor.Sum |
|
( Functor (f a), Functor (g a)) => Functor ( Sum f g a) Source # | |
( Foldable (f a), Foldable (g a)) => Foldable ( Sum f g a) Source # | |
Defined in Data.Bifunctor.Sum fold :: Monoid m => Sum f g a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> Sum f g a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> Sum f g a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> Sum f g a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> Sum f g a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> Sum f g a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> Sum f g a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> Sum f g a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> Sum f g a a0 -> a0 Source # toList :: Sum f g a a0 -> [a0] Source # null :: Sum f g a a0 -> Bool Source # length :: Sum f g a a0 -> Int Source # elem :: Eq a0 => a0 -> Sum f g a a0 -> Bool Source # maximum :: Ord a0 => Sum f g a a0 -> a0 Source # minimum :: Ord a0 => Sum f g a a0 -> a0 Source # |
|
( Traversable (f a), Traversable (g a)) => Traversable ( Sum f g a) Source # | |
Defined in Data.Bifunctor.Sum traverse :: Applicative f0 => (a0 -> f0 b) -> Sum f g a a0 -> f0 ( Sum f g a b) Source # sequenceA :: Applicative f0 => Sum f g a (f0 a0) -> f0 ( Sum f g a a0) Source # mapM :: Monad m => (a0 -> m b) -> Sum f g a a0 -> m ( Sum f g a b) Source # sequence :: Monad m => Sum f g a (m a0) -> m ( Sum f g a a0) Source # |
|
( Eq2 f, Eq2 g, Eq a) => Eq1 ( Sum f g a) Source # | |
( Ord2 f, Ord2 g, Ord a) => Ord1 ( Sum f g a) Source # | |
Defined in Data.Bifunctor.Sum |
|
( Read2 f, Read2 g, Read a) => Read1 ( Sum f g a) Source # | |
Defined in Data.Bifunctor.Sum liftReadsPrec :: ( Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS ( Sum f g a a0) Source # liftReadList :: ( Int -> ReadS a0) -> ReadS [a0] -> ReadS [ Sum f g a a0] Source # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec ( Sum f g a a0) Source # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [ Sum f g a a0] Source # |
|
( Show2 f, Show2 g, Show a) => Show1 ( Sum f g a) Source # | |
( Eq (p a b), Eq (q a b)) => Eq ( Sum p q a b) Source # | |
( Ord (p a b), Ord (q a b)) => Ord ( Sum p q a b) Source # | |
Defined in Data.Bifunctor.Sum compare :: Sum p q a b -> Sum p q a b -> Ordering Source # (<) :: Sum p q a b -> Sum p q a b -> Bool Source # (<=) :: Sum p q a b -> Sum p q a b -> Bool Source # (>) :: Sum p q a b -> Sum p q a b -> Bool Source # (>=) :: Sum p q a b -> Sum p q a b -> Bool Source # |
|
( Read (p a b), Read (q a b)) => Read ( Sum p q a b) Source # | |
( Show (p a b), Show (q a b)) => Show ( Sum p q a b) Source # | |
Generic ( Sum p q a b) Source # | |
type Rep1 ( Sum p q a :: k1 -> Type ) Source # | |
Defined in Data.Bifunctor.Sum
type
Rep1
(
Sum
p q a :: k1 ->
Type
) =
D1
('
MetaData
"Sum" "Data.Bifunctor.Sum" "bifunctors-5.5.14-4o2vxpA6iYN8K0rfLgtyzm" '
False
) (
C1
('
MetaCons
"L2" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec1
(p a)))
:+:
C1
('
MetaCons
"R2" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec1
(q a))))
|
|
type Rep ( Sum p q a b) Source # | |
Defined in Data.Bifunctor.Sum
type
Rep
(
Sum
p q a b) =
D1
('
MetaData
"Sum" "Data.Bifunctor.Sum" "bifunctors-5.5.14-4o2vxpA6iYN8K0rfLgtyzm" '
False
) (
C1
('
MetaCons
"L2" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(p a b)))
:+:
C1
('
MetaCons
"R2" '
PrefixI
'
False
) (
S1
('
MetaSel
('
Nothing
::
Maybe
Symbol
) '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
(q a b))))
|