| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Data.Functor.Base
Description
Base Functors for standard types not already expressed as a fixed point.
Documentation
Base functor of [].
Instances
Base Functor for NonEmpty
Instances
| Bifoldable NonEmptyF Source # | |||||
Defined in Data.Functor.Base | |||||
| Bifunctor NonEmptyF Source # | |||||
| Bitraversable NonEmptyF Source # | |||||
Defined in Data.Functor.Base Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> NonEmptyF a b -> f (NonEmptyF c d) Source # | |||||
| Eq2 NonEmptyF Source # | |||||
| Ord2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base | |||||
| Read2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (NonEmptyF a b) Source # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [NonEmptyF a b] Source # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (NonEmptyF a b) Source # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [NonEmptyF a b] Source # | |||||
| Show2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base | |||||
| Generic1 (NonEmptyF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| Eq a => Eq1 (NonEmptyF a) Source # | |||||
| Ord a => Ord1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Read a => Read1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (NonEmptyF a a0) Source # liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [NonEmptyF a a0] Source # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (NonEmptyF a a0) Source # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [NonEmptyF a a0] Source # | |||||
| Show a => Show1 (NonEmptyF a) Source # | |||||
| Functor (NonEmptyF a) Source # | |||||
| Foldable (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods fold :: Monoid m => NonEmptyF a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> NonEmptyF a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> NonEmptyF a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> NonEmptyF a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> NonEmptyF a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> NonEmptyF a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> NonEmptyF a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> NonEmptyF a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> NonEmptyF a a0 -> a0 Source # toList :: NonEmptyF a a0 -> [a0] Source # null :: NonEmptyF a a0 -> Bool Source # length :: NonEmptyF a a0 -> Int Source # elem :: Eq a0 => a0 -> NonEmptyF a a0 -> Bool Source # maximum :: Ord a0 => NonEmptyF a a0 -> a0 Source # minimum :: Ord a0 => NonEmptyF a a0 -> a0 Source # | |||||
| Traversable (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods traverse :: Applicative f => (a0 -> f b) -> NonEmptyF a a0 -> f (NonEmptyF a b) Source # sequenceA :: Applicative f => NonEmptyF a (f a0) -> f (NonEmptyF a a0) Source # mapM :: Monad m => (a0 -> m b) -> NonEmptyF a a0 -> m (NonEmptyF a b) Source # sequence :: Monad m => NonEmptyF a (m a0) -> m (NonEmptyF a a0) Source # | |||||
| Generic (NonEmptyF a b) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| (Read a, Read b) => Read (NonEmptyF a b) Source # | |||||
| (Show a, Show b) => Show (NonEmptyF a b) Source # | |||||
| (Eq a, Eq b) => Eq (NonEmptyF a b) Source # | |||||
| (Ord a, Ord b) => Ord (NonEmptyF a b) Source # | |||||
Defined in Data.Functor.Base Methods compare :: NonEmptyF a b -> NonEmptyF a b -> Ordering Source # (<) :: NonEmptyF a b -> NonEmptyF a b -> Bool Source # (<=) :: NonEmptyF a b -> NonEmptyF a b -> Bool Source # (>) :: NonEmptyF a b -> NonEmptyF a b -> Bool Source # (>=) :: NonEmptyF a b -> NonEmptyF a b -> Bool Source # max :: NonEmptyF a b -> NonEmptyF a b -> NonEmptyF a b Source # min :: NonEmptyF a b -> NonEmptyF a b -> NonEmptyF a b Source # | |||||
| type Rep1 (NonEmptyF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base type Rep1 (NonEmptyF a :: Type -> Type) = D1 ('MetaData "NonEmptyF" "Data.Functor.Base" "recursion-schemes-5.2.3-JVlqBWcRLQRH6l4WVvFWDs" 'False) (C1 ('MetaCons "NonEmptyF" 'PrefixI 'True) (S1 ('MetaSel ('Just "head") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "tail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 Maybe))) | |||||
| type Rep (NonEmptyF a b) Source # | |||||
Defined in Data.Functor.Base type Rep (NonEmptyF a b) = D1 ('MetaData "NonEmptyF" "Data.Functor.Base" "recursion-schemes-5.2.3-JVlqBWcRLQRH6l4WVvFWDs" 'False) (C1 ('MetaCons "NonEmptyF" 'PrefixI 'True) (S1 ('MetaSel ('Just "head") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "tail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe b)))) | |||||
Base functor for Tree.
Instances
| Bifoldable TreeF Source # | |||||
| Bifunctor TreeF Source # | |||||
| Bitraversable TreeF Source # | |||||
Defined in Data.Functor.Base Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> TreeF a b -> f (TreeF c d) Source # | |||||
| Eq2 TreeF Source # | |||||
| Ord2 TreeF Source # | |||||
Defined in Data.Functor.Base | |||||
| Read2 TreeF Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (TreeF a b) Source # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [TreeF a b] Source # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (TreeF a b) Source # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [TreeF a b] Source # | |||||
| Show2 TreeF Source # | |||||
| Generic1 (TreeF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| Eq a => Eq1 (TreeF a) Source # | |||||
| Ord a => Ord1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Read a => Read1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (TreeF a a0) Source # liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [TreeF a a0] Source # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (TreeF a a0) Source # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [TreeF a a0] Source # | |||||
| Show a => Show1 (TreeF a) Source # | |||||
| Functor (TreeF a) Source # | |||||
| Foldable (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods fold :: Monoid m => TreeF a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> TreeF a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> TreeF a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> TreeF a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> TreeF a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> TreeF a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> TreeF a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> TreeF a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> TreeF a a0 -> a0 Source # toList :: TreeF a a0 -> [a0] Source # null :: TreeF a a0 -> Bool Source # length :: TreeF a a0 -> Int Source # elem :: Eq a0 => a0 -> TreeF a a0 -> Bool Source # maximum :: Ord a0 => TreeF a a0 -> a0 Source # minimum :: Ord a0 => TreeF a a0 -> a0 Source # | |||||
| Traversable (TreeF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Generic (TreeF a b) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| (Read a, Read b) => Read (TreeF a b) Source # | |||||
| (Show a, Show b) => Show (TreeF a b) Source # | |||||
| (Eq a, Eq b) => Eq (TreeF a b) Source # | |||||
| (Ord a, Ord b) => Ord (TreeF a b) Source # | |||||
Defined in Data.Functor.Base | |||||
| type Rep1 (TreeF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base type Rep1 (TreeF a :: Type -> Type) = D1 ('MetaData "TreeF" "Data.Functor.Base" "recursion-schemes-5.2.3-JVlqBWcRLQRH6l4WVvFWDs" 'False) (C1 ('MetaCons "NodeF" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec1 []))) | |||||
| type Rep (TreeF a b) Source # | |||||
Defined in Data.Functor.Base type Rep (TreeF a b) = D1 ('MetaData "TreeF" "Data.Functor.Base" "recursion-schemes-5.2.3-JVlqBWcRLQRH6l4WVvFWDs" 'False) (C1 ('MetaCons "NodeF" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ForestF a b)))) | |||||