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 | Haskell98 |
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: Clowns to the left (parameter of the Bifunctor), jokers to the right.
Instances
Generic1 (Joker g a :: k1 -> *) Source # | |
Traversable g => Bitraversable (Joker g :: * -> * -> *) Source # | |
Defined in Data.Bifunctor.Joker bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Joker g a b -> f (Joker g c d) # | |
Foldable g => Bifoldable (Joker g :: * -> * -> *) Source # | |
Functor g => Bifunctor (Joker g :: * -> * -> *) Source # | |
Applicative g => Biapplicative (Joker g :: * -> * -> *) 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 fold :: Monoid m => Joker g a m -> m # foldMap :: Monoid m => (a0 -> m) -> Joker g a a0 -> m # foldr :: (a0 -> b -> b) -> b -> Joker g a a0 -> b # foldr' :: (a0 -> b -> b) -> b -> Joker g a a0 -> b # foldl :: (b -> a0 -> b) -> b -> Joker g a a0 -> b # foldl' :: (b -> a0 -> b) -> b -> Joker g a a0 -> b # foldr1 :: (a0 -> a0 -> a0) -> Joker g a a0 -> a0 # foldl1 :: (a0 -> a0 -> a0) -> Joker g a a0 -> a0 # toList :: Joker g a a0 -> [a0] # null :: Joker g a a0 -> Bool # length :: Joker g a a0 -> Int # elem :: Eq a0 => a0 -> Joker g a a0 -> Bool # maximum :: Ord a0 => Joker g a a0 -> a0 # minimum :: Ord a0 => Joker g a a0 -> a0 # | |
Traversable g => Traversable (Joker g a) Source # | |
Defined in Data.Bifunctor.Joker | |
Eq (g b) => Eq (Joker g a b) Source # | |
Ord (g b) => Ord (Joker g a b) Source # | |
Defined in Data.Bifunctor.Joker | |
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 -> *) Source # | |
Defined in Data.Bifunctor.Joker | |
type Rep (Joker g a b) Source # | |
Defined in Data.Bifunctor.Joker |