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 # | |
(Bifoldable p, Bifoldable q) => Bifoldable (Sum p q) Source # | |
(Bifunctor p, Bifunctor q) => Bifunctor (Sum p q) 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) # | |
(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) # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [Sum f g a b] # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (Sum f g a b) # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [Sum f g a b] # | |
(Show2 f, Show2 g) => Show2 (Sum f g) 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 # foldMap :: Monoid m => (a0 -> m) -> Sum f g a a0 -> m # foldMap' :: Monoid m => (a0 -> m) -> Sum f g a a0 -> m # foldr :: (a0 -> b -> b) -> b -> Sum f g a a0 -> b # foldr' :: (a0 -> b -> b) -> b -> Sum f g a a0 -> b # foldl :: (b -> a0 -> b) -> b -> Sum f g a a0 -> b # foldl' :: (b -> a0 -> b) -> b -> Sum f g a a0 -> b # foldr1 :: (a0 -> a0 -> a0) -> Sum f g a a0 -> a0 # foldl1 :: (a0 -> a0 -> a0) -> Sum f g a a0 -> a0 # toList :: Sum f g a a0 -> [a0] # null :: Sum f g a a0 -> Bool # length :: Sum f g a a0 -> Int # elem :: Eq a0 => a0 -> Sum f g a a0 -> Bool # maximum :: Ord a0 => Sum f g a a0 -> a0 # minimum :: Ord a0 => Sum f g a a0 -> a0 # | |
(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) # liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [Sum f g a a0] # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (Sum f g a a0) # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [Sum f g a a0] # | |
(Show2 f, Show2 g, Show a) => Show1 (Sum f g a) Source # | |
(Traversable (f a), Traversable (g a)) => Traversable (Sum f g a) Source # | |
Defined in Data.Bifunctor.Sum | |
(Functor (f a), Functor (g a)) => Functor (Sum f g a) Source # | |
Generic (Sum p q a b) 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 # | |
(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 | |
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.6-8j8DuS3SamL1CuBJbDn40d" '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.6-8j8DuS3SamL1CuBJbDn40d" '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)))) |