Copyright | (C) 2008-2016 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.Bifunctor.Joker
Description
From the Functional Pearl "Clowns to the Left of me, Jokers to the Right: Dissecting Data Structures" by Conor McBride.
Documentation
Make a
Functor
over the second argument of a
Bifunctor
.
Mnemonic: C l owns to the l eft (parameter of the Bifunctor), joke r s to the r ight.
Instances
Generic1 ( Joker g a :: k1 -> Type ) Source # | |
Traversable g => Bitraversable ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Joker g a b -> f ( Joker g c d) Source # |
|
Foldable g => Bifoldable ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker |
|
Functor g => Bifunctor ( Joker g :: Type -> Type -> Type ) Source # | |
Eq1 g => Eq2 ( Joker g :: Type -> Type -> Type ) Source # | |
Ord1 g => Ord2 ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker |
|
Read1 g => Read2 ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker Methods liftReadsPrec2 :: ( Int -> ReadS a) -> ReadS [a] -> ( Int -> ReadS b) -> ReadS [b] -> Int -> ReadS ( Joker g a b) Source # liftReadList2 :: ( Int -> ReadS a) -> ReadS [a] -> ( Int -> ReadS b) -> ReadS [b] -> ReadS [ Joker g a b] Source # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec ( Joker g a b) Source # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [ Joker g a b] Source # |
|
Show1 g => Show2 ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker |
|
Applicative g => Biapplicative ( Joker g :: Type -> Type -> Type ) Source # | |
Defined in Data.Bifunctor.Joker |
|
Functor g => Functor ( Joker g a) Source # | |
Foldable g => Foldable ( Joker g a) Source # | |
Defined in Data.Bifunctor.Joker Methods fold :: Monoid m => Joker g a m -> m Source # foldMap :: Monoid m => (a0 -> m) -> Joker g a a0 -> m Source # foldMap' :: Monoid m => (a0 -> m) -> Joker g a a0 -> m Source # foldr :: (a0 -> b -> b) -> b -> Joker g a a0 -> b Source # foldr' :: (a0 -> b -> b) -> b -> Joker g a a0 -> b Source # foldl :: (b -> a0 -> b) -> b -> Joker g a a0 -> b Source # foldl' :: (b -> a0 -> b) -> b -> Joker g a a0 -> b Source # foldr1 :: (a0 -> a0 -> a0) -> Joker g a a0 -> a0 Source # foldl1 :: (a0 -> a0 -> a0) -> Joker g a a0 -> a0 Source # toList :: Joker g a a0 -> [a0] Source # null :: Joker g a a0 -> Bool Source # length :: Joker g a a0 -> Int Source # elem :: Eq a0 => a0 -> Joker g a a0 -> Bool Source # maximum :: Ord a0 => Joker g a a0 -> a0 Source # minimum :: Ord a0 => Joker g a a0 -> a0 Source # |
|
Traversable g => Traversable ( Joker g a) Source # | |
Defined in Data.Bifunctor.Joker Methods traverse :: Applicative f => (a0 -> f b) -> Joker g a a0 -> f ( Joker g a b) Source # sequenceA :: Applicative f => Joker g a (f a0) -> f ( Joker g a a0) Source # mapM :: Monad m => (a0 -> m b) -> Joker g a a0 -> m ( Joker g a b) Source # sequence :: Monad m => Joker g a (m a0) -> m ( Joker g a a0) Source # |
|
Eq1 g => Eq1 ( Joker g a) Source # | |
Ord1 g => Ord1 ( Joker g a) Source # | |
Defined in Data.Bifunctor.Joker |
|
Read1 g => Read1 ( Joker g a) Source # | |
Defined in Data.Bifunctor.Joker Methods liftReadsPrec :: ( Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS ( Joker g a a0) Source # liftReadList :: ( Int -> ReadS a0) -> ReadS [a0] -> ReadS [ Joker g a a0] Source # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec ( Joker g a a0) Source # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [ Joker g a a0] Source # |
|
Show1 g => Show1 ( Joker g a) Source # | |
Eq (g b) => Eq ( Joker g a b) Source # | |
Ord (g b) => Ord ( Joker g a b) Source # | |
Defined in Data.Bifunctor.Joker Methods compare :: Joker g a b -> Joker g a b -> Ordering Source # (<) :: Joker g a b -> Joker g a b -> Bool Source # (<=) :: Joker g a b -> Joker g a b -> Bool Source # (>) :: Joker g a b -> Joker g a b -> Bool Source # (>=) :: Joker g a b -> Joker g a b -> Bool Source # |
|
Read (g b) => Read ( Joker g a b) Source # | |
Show (g b) => Show ( Joker g a b) Source # | |
Generic ( Joker g a b) Source # | |
type Rep1 ( Joker g a :: k1 -> Type ) Source # | |
Defined in Data.Bifunctor.Joker |
|
type Rep ( Joker g a b) Source # | |
Defined in Data.Bifunctor.Joker |