| 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
| Bifoldable ListF Source # | |||||
| Bifunctor ListF Source # | |||||
| Bitraversable ListF Source # | |||||
Defined in Data.Functor.Base Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> ListF a b -> f (ListF c d) | |||||
| Eq2 ListF Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord2 ListF Source # | |||||
Defined in Data.Functor.Base Methods liftCompare2 :: (a -> b -> Ordering) -> (c -> d -> Ordering) -> ListF a c -> ListF b d -> Ordering | |||||
| Read2 ListF Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (ListF a b) liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [ListF a b] liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (ListF a b) liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [ListF a b] | |||||
| Show2 ListF Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> ListF a b -> ShowS liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [ListF a b] -> ShowS | |||||
| Generic1 (ListF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| Eq a => Eq1 (ListF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord a => Ord1 (ListF a) Source # | |||||
Defined in Data.Functor.Base Methods liftCompare :: (a0 -> b -> Ordering) -> ListF a a0 -> ListF a b -> Ordering | |||||
| Read a => Read1 (ListF a) Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (ListF a a0) liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [ListF a a0] liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (ListF a a0) liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [ListF a a0] | |||||
| Show a => Show1 (ListF a) Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> ListF a a0 -> ShowS liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [ListF a a0] -> ShowS | |||||
| Functor (ListF a) Source # | |||||
| Foldable (ListF a) Source # | |||||
Defined in Data.Functor.Base Methods fold :: Monoid m => ListF a m -> m foldMap :: Monoid m => (a0 -> m) -> ListF a a0 -> m foldMap' :: Monoid m => (a0 -> m) -> ListF a a0 -> m foldr :: (a0 -> b -> b) -> b -> ListF a a0 -> b foldr' :: (a0 -> b -> b) -> b -> ListF a a0 -> b foldl :: (b -> a0 -> b) -> b -> ListF a a0 -> b foldl' :: (b -> a0 -> b) -> b -> ListF a a0 -> b foldr1 :: (a0 -> a0 -> a0) -> ListF a a0 -> a0 foldl1 :: (a0 -> a0 -> a0) -> ListF a a0 -> a0 elem :: Eq a0 => a0 -> ListF a a0 -> Bool maximum :: Ord a0 => ListF a a0 -> a0 minimum :: Ord a0 => ListF a a0 -> a0 | |||||
| Traversable (ListF a) Source # | |||||
| Generic (ListF a b) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| (Read a, Read b) => Read (ListF a b) Source # | |||||
Defined in Data.Functor.Base | |||||
| (Show a, Show b) => Show (ListF a b) Source # | |||||
| (Eq a, Eq b) => Eq (ListF a b) Source # | |||||
| (Ord a, Ord b) => Ord (ListF a b) Source # | |||||
Defined in Data.Functor.Base | |||||
| type Rep1 (ListF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base type Rep1 (ListF a :: Type -> Type) = D1 ('MetaData "ListF" "Data.Functor.Base" "recursion-schemes-5.2.3-K3D9dDpBcte1cy2ppH5E3C" 'False) (C1 ('MetaCons "Nil" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cons" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) Par1)) | |||||
| type Rep (ListF a b) Source # | |||||
Defined in Data.Functor.Base type Rep (ListF a b) = D1 ('MetaData "ListF" "Data.Functor.Base" "recursion-schemes-5.2.3-K3D9dDpBcte1cy2ppH5E3C" 'False) (C1 ('MetaCons "Nil" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Cons" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b))) | |||||
Base Functor for NonEmpty
Instances
| Bifoldable NonEmptyF Source # | |||||
| 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) | |||||
| Eq2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base Methods liftCompare2 :: (a -> b -> Ordering) -> (c -> d -> Ordering) -> NonEmptyF a c -> NonEmptyF b d -> Ordering | |||||
| 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) liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [NonEmptyF a b] liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (NonEmptyF a b) liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [NonEmptyF a b] | |||||
| Show2 NonEmptyF Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> NonEmptyF a b -> ShowS liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [NonEmptyF a b] -> ShowS | |||||
| Generic1 (NonEmptyF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| Eq a => Eq1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord a => Ord1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods liftCompare :: (a0 -> b -> Ordering) -> NonEmptyF a a0 -> NonEmptyF a b -> Ordering | |||||
| Read a => Read1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (NonEmptyF a a0) liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [NonEmptyF a a0] liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (NonEmptyF a a0) liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [NonEmptyF a a0] | |||||
| Show a => Show1 (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> NonEmptyF a a0 -> ShowS liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [NonEmptyF a a0] -> ShowS | |||||
| Functor (NonEmptyF a) Source # | |||||
| Foldable (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base Methods fold :: Monoid m => NonEmptyF a m -> m foldMap :: Monoid m => (a0 -> m) -> NonEmptyF a a0 -> m foldMap' :: Monoid m => (a0 -> m) -> NonEmptyF a a0 -> m foldr :: (a0 -> b -> b) -> b -> NonEmptyF a a0 -> b foldr' :: (a0 -> b -> b) -> b -> NonEmptyF a a0 -> b foldl :: (b -> a0 -> b) -> b -> NonEmptyF a a0 -> b foldl' :: (b -> a0 -> b) -> b -> NonEmptyF a a0 -> b foldr1 :: (a0 -> a0 -> a0) -> NonEmptyF a a0 -> a0 foldl1 :: (a0 -> a0 -> a0) -> NonEmptyF a a0 -> a0 toList :: NonEmptyF a a0 -> [a0] null :: NonEmptyF a a0 -> Bool length :: NonEmptyF a a0 -> Int elem :: Eq a0 => a0 -> NonEmptyF a a0 -> Bool maximum :: Ord a0 => NonEmptyF a a0 -> a0 minimum :: Ord a0 => NonEmptyF a a0 -> a0 | |||||
| Traversable (NonEmptyF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Generic (NonEmptyF a b) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| (Read a, Read b) => Read (NonEmptyF a b) Source # | |||||
Defined in Data.Functor.Base | |||||
| (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 | |||||
| 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-K3D9dDpBcte1cy2ppH5E3C" '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-K3D9dDpBcte1cy2ppH5E3C" '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) | |||||
| Eq2 TreeF Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord2 TreeF Source # | |||||
Defined in Data.Functor.Base Methods liftCompare2 :: (a -> b -> Ordering) -> (c -> d -> Ordering) -> TreeF a c -> TreeF b d -> Ordering | |||||
| 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) liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [TreeF a b] liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (TreeF a b) liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [TreeF a b] | |||||
| Show2 TreeF Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> Int -> TreeF a b -> ShowS liftShowList2 :: (Int -> a -> ShowS) -> ([a] -> ShowS) -> (Int -> b -> ShowS) -> ([b] -> ShowS) -> [TreeF a b] -> ShowS | |||||
| Generic1 (TreeF a :: Type -> Type) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| Eq a => Eq1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base | |||||
| Ord a => Ord1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods liftCompare :: (a0 -> b -> Ordering) -> TreeF a a0 -> TreeF a b -> Ordering | |||||
| Read a => Read1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (TreeF a a0) liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [TreeF a a0] liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (TreeF a a0) liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [TreeF a a0] | |||||
| Show a => Show1 (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods liftShowsPrec :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> Int -> TreeF a a0 -> ShowS liftShowList :: (Int -> a0 -> ShowS) -> ([a0] -> ShowS) -> [TreeF a a0] -> ShowS | |||||
| Functor (TreeF a) Source # | |||||
| Foldable (TreeF a) Source # | |||||
Defined in Data.Functor.Base Methods fold :: Monoid m => TreeF a m -> m foldMap :: Monoid m => (a0 -> m) -> TreeF a a0 -> m foldMap' :: Monoid m => (a0 -> m) -> TreeF a a0 -> m foldr :: (a0 -> b -> b) -> b -> TreeF a a0 -> b foldr' :: (a0 -> b -> b) -> b -> TreeF a a0 -> b foldl :: (b -> a0 -> b) -> b -> TreeF a a0 -> b foldl' :: (b -> a0 -> b) -> b -> TreeF a a0 -> b foldr1 :: (a0 -> a0 -> a0) -> TreeF a a0 -> a0 foldl1 :: (a0 -> a0 -> a0) -> TreeF a a0 -> a0 elem :: Eq a0 => a0 -> TreeF a a0 -> Bool maximum :: Ord a0 => TreeF a a0 -> a0 minimum :: Ord a0 => TreeF a a0 -> a0 | |||||
| Traversable (TreeF a) Source # | |||||
| Generic (TreeF a b) Source # | |||||
Defined in Data.Functor.Base Associated Types
| |||||
| (Read a, Read b) => Read (TreeF a b) Source # | |||||
Defined in Data.Functor.Base | |||||
| (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-K3D9dDpBcte1cy2ppH5E3C" '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-K3D9dDpBcte1cy2ppH5E3C" '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)))) | |||||