Data.Bifunctor.Flip

bifunctors-5.3: 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.Flip

Description

Synopsis

- newtype Flip p a b = Flip {
  - runFlip :: p b a
  }

# Documentation

newtype Flip p a b

Make a `Bifunctor` flipping the arguments of a `Bifunctor`.

Constructors

Flip |
Fields runFlip :: p b a

Instances

BifunctorFunctor k k k k (Flip k k) |
Bifunctor p => Bifunctor (Flip * * p) |
Bifoldable p => Bifoldable (Flip * * p) |
Bitraversable p => Bitraversable (Flip * * p) |
Biapplicative p => Biapplicative (Flip * * p) |
Bifunctor p => Functor (Flip * * p a) |
Bifoldable p => Foldable (Flip * * p a) |
Bitraversable p => Traversable (Flip * * p a) |
Eq (p b a) => Eq (Flip k k p a b) |
Ord (p b a) => Ord (Flip k k p a b) |
Read (p b a) => Read (Flip k k p a b) |
Show (p b a) => Show (Flip k k p a b) |
Generic (Flip k k p a b) |
type Rep (Flip k k1 p a b) |