bifunctors-5.5.3: Bifunctors

Data.Bifunctor.Joker

Description

From the Functional Pearl "Clowns to the Left of me, Jokers to the Right: Dissecting Data Structures" by Conor McBride.

Synopsis

# Documentation

newtype Joker g a b Source #

Make a Functor over the second argument of a Bifunctor.

Mnemonic: Clowns to the left (parameter of the Bifunctor), jokers to the right.

Constructors

 Joker FieldsrunJoker :: g b
Instances
 Generic1 (Joker g a :: k1 -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker Associated Typestype Rep1 (Joker g a) :: k -> * # Methodsfrom1 :: Joker g a a0 -> Rep1 (Joker g a) a0 #to1 :: Rep1 (Joker g a) a0 -> Joker g a a0 # Traversable g => Bitraversable (Joker g :: * -> * -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsbitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Joker g a b -> f (Joker g c d) # Foldable g => Bifoldable (Joker g :: * -> * -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsbifold :: Monoid m => Joker g m m -> m #bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> Joker g a b -> m #bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> Joker g a b -> c #bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> Joker g a b -> c # Functor g => Bifunctor (Joker g :: * -> * -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsbimap :: (a -> b) -> (c -> d) -> Joker g a c -> Joker g b d #first :: (a -> b) -> Joker g a c -> Joker g b c #second :: (b -> c) -> Joker g a b -> Joker g a c # Applicative g => Biapplicative (Joker g :: * -> * -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsbipure :: a -> b -> Joker g a b Source #(<<*>>) :: Joker g (a -> b) (c -> d) -> Joker g a c -> Joker g b d Source #biliftA2 :: (a -> b -> c) -> (d -> e -> f) -> Joker g a d -> Joker g b e -> Joker g c f Source #(*>>) :: Joker g a b -> Joker g c d -> Joker g c d Source #(<<*) :: Joker g a b -> Joker g c d -> Joker g a b Source # Functor g => Functor (Joker g a) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsfmap :: (a0 -> b) -> Joker g a a0 -> Joker g a b #(<\$) :: a0 -> Joker g a b -> Joker g a a0 # Foldable g => Foldable (Joker g a) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodsfold :: 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 #sum :: Num a0 => Joker g a a0 -> a0 #product :: Num a0 => Joker g a a0 -> a0 # Traversable g => Traversable (Joker g a) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodstraverse :: Applicative f => (a0 -> f b) -> Joker g a a0 -> f (Joker g a b) #sequenceA :: Applicative f => Joker g a (f a0) -> f (Joker g a a0) #mapM :: Monad m => (a0 -> m b) -> Joker g a a0 -> m (Joker g a b) #sequence :: Monad m => Joker g a (m a0) -> m (Joker g a a0) # Eq (g b) => Eq (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker Methods(==) :: Joker g a b -> Joker g a b -> Bool #(/=) :: Joker g a b -> Joker g a b -> Bool # Ord (g b) => Ord (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker Methodscompare :: Joker g a b -> Joker g a b -> Ordering #(<) :: Joker g a b -> Joker g a b -> Bool #(<=) :: Joker g a b -> Joker g a b -> Bool #(>) :: Joker g a b -> Joker g a b -> Bool #(>=) :: Joker g a b -> Joker g a b -> Bool #max :: Joker g a b -> Joker g a b -> Joker g a b #min :: Joker g a b -> Joker g a b -> Joker g a b # Read (g b) => Read (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker MethodsreadsPrec :: Int -> ReadS (Joker g a b) #readList :: ReadS [Joker g a b] #readPrec :: ReadPrec (Joker g a b) #readListPrec :: ReadPrec [Joker g a b] # Show (g b) => Show (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker MethodsshowsPrec :: Int -> Joker g a b -> ShowS #show :: Joker g a b -> String #showList :: [Joker g a b] -> ShowS # Generic (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker Associated Typestype Rep (Joker g a b) :: * -> * # Methodsfrom :: Joker g a b -> Rep (Joker g a b) x #to :: Rep (Joker g a b) x -> Joker g a b # type Rep1 (Joker g a :: k1 -> *) Source # Instance detailsDefined in Data.Bifunctor.Joker type Rep1 (Joker g a :: k1 -> *) = D1 (MetaData "Joker" "Data.Bifunctor.Joker" "bifunctors-5.5.3-C6ZpRcwIkW2G7uSQuXu3CK" True) (C1 (MetaCons "Joker" PrefixI True) (S1 (MetaSel (Just "runJoker") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 g))) type Rep (Joker g a b) Source # Instance detailsDefined in Data.Bifunctor.Joker type Rep (Joker g a b) = D1 (MetaData "Joker" "Data.Bifunctor.Joker" "bifunctors-5.5.3-C6ZpRcwIkW2G7uSQuXu3CK" True) (C1 (MetaCons "Joker" PrefixI True) (S1 (MetaSel (Just "runJoker") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (g b))))