bifunctors-5.4.1: Bifunctors

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

Data.Bifunctor.Wrapped

Description

Synopsis

- newtype WrappedBifunctor p a b = WrapBifunctor {
  - unwrapBifunctor :: p a b
  }

# Documentation

newtype WrappedBifunctor p a b #

Make a `Functor` over the second argument of a `Bifunctor`.

Constructors

WrapBifunctor |
Fields unwrapBifunctor :: p a b

Instances

Bifunctor p => Bifunctor (WrappedBifunctor * * p) # |
Methods bimap :: (a -> b) -> (c -> d) -> WrappedBifunctor * * p a c -> WrappedBifunctor * * p b d # first :: (a -> b) -> WrappedBifunctor * * p a c -> WrappedBifunctor * * p b c # second :: (b -> c) -> WrappedBifunctor * * p a b -> WrappedBifunctor * * p a c #
Bifoldable p => Bifoldable (WrappedBifunctor * * p) # |
Methods bifold :: Monoid m => WrappedBifunctor * * p m m -> m # bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> WrappedBifunctor * * p a b -> m # bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> WrappedBifunctor * * p a b -> c # bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> WrappedBifunctor * * p a b -> c #
Bitraversable p => Bitraversable (WrappedBifunctor * * p) # |
Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> WrappedBifunctor * * p a b -> f (WrappedBifunctor * * p c d) #
Biapplicative p => Biapplicative (WrappedBifunctor * * p) # |
Methods bipure :: a -> b -> WrappedBifunctor * * p a b # (<<*>>) :: WrappedBifunctor * * p (a -> b) (c -> d) -> WrappedBifunctor * * p a c -> WrappedBifunctor * * p b d # (*>>) :: WrappedBifunctor * * p a b -> WrappedBifunctor * * p c d -> WrappedBifunctor * * p c d # (<<*) :: WrappedBifunctor * * p a b -> WrappedBifunctor * * p c d -> WrappedBifunctor * * p a b #
Bifunctor p => Functor (WrappedBifunctor * * p a) # |
Methods fmap :: (a -> b) -> WrappedBifunctor * * p a a -> WrappedBifunctor * * p a b # (<$) :: a -> WrappedBifunctor * * p a b -> WrappedBifunctor * * p a a #
Bifoldable p => Foldable (WrappedBifunctor * * p a) # |
Methods fold :: Monoid m => WrappedBifunctor * * p a m -> m # foldMap :: Monoid m => (a -> m) -> WrappedBifunctor * * p a a -> m # foldr :: (a -> b -> b) -> b -> WrappedBifunctor * * p a a -> b # foldr' :: (a -> b -> b) -> b -> WrappedBifunctor * * p a a -> b # foldl :: (b -> a -> b) -> b -> WrappedBifunctor * * p a a -> b # foldl' :: (b -> a -> b) -> b -> WrappedBifunctor * * p a a -> b # foldr1 :: (a -> a -> a) -> WrappedBifunctor * * p a a -> a # foldl1 :: (a -> a -> a) -> WrappedBifunctor * * p a a -> a # toList :: WrappedBifunctor * * p a a -> [a] # null :: WrappedBifunctor * * p a a -> Bool # length :: WrappedBifunctor * * p a a -> Int # elem :: Eq a => a -> WrappedBifunctor * * p a a -> Bool # maximum :: Ord a => WrappedBifunctor * * p a a -> a # minimum :: Ord a => WrappedBifunctor * * p a a -> a # sum :: Num a => WrappedBifunctor * * p a a -> a # product :: Num a => WrappedBifunctor * * p a a -> a #
Bitraversable p => Traversable (WrappedBifunctor * * p a) # |
Methods traverse :: Applicative f => (a -> f b) -> WrappedBifunctor * * p a a -> f (WrappedBifunctor * * p a b) # sequenceA :: Applicative f => WrappedBifunctor * * p a (f a) -> f (WrappedBifunctor * * p a a) # mapM :: Monad m => (a -> m b) -> WrappedBifunctor * * p a a -> m (WrappedBifunctor * * p a b) # sequence :: Monad m => WrappedBifunctor * * p a (m a) -> m (WrappedBifunctor * * p a a) #
Generic1 (WrappedBifunctor k * p a) # |
Associated Types type Rep1 (WrappedBifunctor k * p a :: * -> *) :: * -> * # Methods from1 :: WrappedBifunctor k * p a a -> Rep1 (WrappedBifunctor k * p a) a # to1 :: Rep1 (WrappedBifunctor k * p a) a -> WrappedBifunctor k * p a a #
Eq (p a b) => Eq (WrappedBifunctor k k1 p a b) # |
Methods (==) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool # (/=) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool #
Ord (p a b) => Ord (WrappedBifunctor k k1 p a b) # |
Methods compare :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Ordering # (<) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool # (<=) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool # (>) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool # (>=) :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> Bool # max :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b # min :: WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b -> WrappedBifunctor k k1 p a b #
Read (p a b) => Read (WrappedBifunctor k k1 p a b) # |
Methods readsPrec :: Int -> ReadS (WrappedBifunctor k k1 p a b) # readList :: ReadS [WrappedBifunctor k k1 p a b] # readPrec :: ReadPrec (WrappedBifunctor k k1 p a b) # readListPrec :: ReadPrec [WrappedBifunctor k k1 p a b] #
Show (p a b) => Show (WrappedBifunctor k k1 p a b) # |
Methods showsPrec :: Int -> WrappedBifunctor k k1 p a b -> ShowS # show :: WrappedBifunctor k k1 p a b -> String # showList :: [WrappedBifunctor k k1 p a b] -> ShowS #
Generic (WrappedBifunctor k k1 p a b) # |
Associated Types type Rep (WrappedBifunctor k k1 p a b) :: * -> * # Methods from :: WrappedBifunctor k k1 p a b -> Rep (WrappedBifunctor k k1 p a b) x # to :: Rep (WrappedBifunctor k k1 p a b) x -> WrappedBifunctor k k1 p a b #
type Rep1 (WrappedBifunctor k * p a) # |
type Rep1 (WrappedBifunctor k * p a) = D1 (MetaData "WrappedBifunctor" "Data.Bifunctor.Wrapped" "bifunctors-5.4.1-Ac6G6TmMVPE36jXOz0jDKq" True) (C1 (MetaCons "WrapBifunctor" PrefixI True) (S1 (MetaSel (Just Symbol "unwrapBifunctor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec1 (p a))))
type Rep (WrappedBifunctor k k1 p a b) # |
type Rep (WrappedBifunctor k k1 p a b) = D1 (MetaData "WrappedBifunctor" "Data.Bifunctor.Wrapped" "bifunctors-5.4.1-Ac6G6TmMVPE36jXOz0jDKq" True) (C1 (MetaCons "WrapBifunctor" PrefixI True) (S1 (MetaSel (Just Symbol "unwrapBifunctor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (p a b))))