Copyright | (C) 2014-2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | Rank2Types |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- class Profunctor p => Strong p where
- uncurry' :: Strong p => p a (b -> c) -> p (a, b) c
- newtype Tambara p a b = Tambara {
- runTambara :: forall c. p (a, c) (b, c)
- tambara :: Strong p => (p :-> q) -> p :-> Tambara q
- untambara :: Profunctor q => (p :-> Tambara q) -> p :-> q
- data Pastro p a b where
- pastro :: Strong q => (p :-> q) -> Pastro p :-> q
- unpastro :: (Pastro p :-> q) -> p :-> q
- class Profunctor p => Costrong p where
- data Cotambara q a b where
- cotambara :: Costrong p => (p :-> q) -> p :-> Cotambara q
- uncotambara :: Profunctor q => (p :-> Cotambara q) -> p :-> q
- newtype Copastro p a b = Copastro {
- runCopastro :: forall r. Costrong r => (forall x y. p x y -> r x y) -> r a b
Strength
class Profunctor p => Strong p where Source #
Generalizing Star
of a strong Functor
Note: Every Functor
in Haskell is strong with respect to (,)
.
This describes profunctor strength with respect to the product structure of Hask.
http://www-kb.is.s.u-tokyo.ac.jp/~asada/papers/arrStrMnd.pdf
Instances
newtype Tambara p a b Source #
Tambara
cofreely makes any Profunctor
Strong
.
Tambara | |
|
Instances
data Pastro p a b where Source #
Pastro -| Tambara
Pastro p ~ exists z. Costar ((,)z)Procompose
pProcompose
Star ((,)z)
Pastro
freely makes any Profunctor
Strong
.
Instances
ProfunctorMonad Pastro Source # | |
Defined in Data.Profunctor.Strong | |
ProfunctorFunctor Pastro Source # | |
Defined in Data.Profunctor.Strong | |
ProfunctorAdjunction Pastro Tambara Source # | |
Defined in Data.Profunctor.Strong | |
Profunctor (Pastro p) Source # | |
Defined in Data.Profunctor.Strong dimap :: (a -> b) -> (c -> d) -> Pastro p b c -> Pastro p a d Source # lmap :: (a -> b) -> Pastro p b c -> Pastro p a c Source # rmap :: (b -> c) -> Pastro p a b -> Pastro p a c Source # (#.) :: Coercible c b => (b -> c) -> Pastro p a b -> Pastro p a c Source # (.#) :: Coercible b a => Pastro p b c -> (a -> b) -> Pastro p a c Source # | |
Strong (Pastro p) Source # | |
Costrength
class Profunctor p => Costrong p where Source #
Instances
MonadFix m => Costrong (Kleisli m) Source # | |
Functor f => Costrong (Cokleisli f) Source # | |
Costrong (Tagged :: * -> * -> *) Source # | |
ArrowLoop p => Costrong (WrappedArrow p) Source # | |
Defined in Data.Profunctor.Strong unfirst :: WrappedArrow p (a, d) (b, d) -> WrappedArrow p a b Source # unsecond :: WrappedArrow p (d, a) (d, b) -> WrappedArrow p a b Source # | |
Functor f => Costrong (Costar f) Source # | |
Costrong (Copastro p) Source # | |
Costrong (Cotambara p) Source # | |
Costrong p => Costrong (Coyoneda p) Source # | |
Costrong p => Costrong (Yoneda p) Source # | |
Costrong ((->) :: * -> * -> *) Source # | |
(Corepresentable p, Corepresentable q) => Costrong (Procompose p q) Source # | |
Defined in Data.Profunctor.Composition unfirst :: Procompose p q (a, d) (b, d) -> Procompose p q a b Source # unsecond :: Procompose p q (d, a) (d, b) -> Procompose p q a b Source # | |
(Costrong p, Costrong q) => Costrong (Product p q) Source # | |
(Functor f, Costrong p) => Costrong (Tannen f p) Source # | |
data Cotambara q a b where Source #
Cotambara cofreely constructs costrength
Instances
ProfunctorComonad Cotambara Source # | |
Defined in Data.Profunctor.Strong proextract :: Profunctor p => Cotambara p :-> p Source # produplicate :: Profunctor p => Cotambara p :-> Cotambara (Cotambara p) Source # | |
ProfunctorFunctor Cotambara Source # | |
Defined in Data.Profunctor.Strong | |
ProfunctorAdjunction Copastro Cotambara Source # | |
Defined in Data.Profunctor.Strong | |
Profunctor (Cotambara p) Source # | |
Defined in Data.Profunctor.Strong dimap :: (a -> b) -> (c -> d) -> Cotambara p b c -> Cotambara p a d Source # lmap :: (a -> b) -> Cotambara p b c -> Cotambara p a c Source # rmap :: (b -> c) -> Cotambara p a b -> Cotambara p a c Source # (#.) :: Coercible c b => (b -> c) -> Cotambara p a b -> Cotambara p a c Source # (.#) :: Coercible b a => Cotambara p b c -> (a -> b) -> Cotambara p a c Source # | |
Costrong (Cotambara p) Source # | |
Functor (Cotambara p a) Source # | |
uncotambara :: Profunctor q => (p :-> Cotambara q) -> p :-> q Source #
newtype Copastro p a b Source #
Copastro -| Cotambara
Copastro freely constructs costrength
Copastro | |
|
Instances
ProfunctorMonad Copastro Source # | |
Defined in Data.Profunctor.Strong | |
ProfunctorFunctor Copastro Source # | |
Defined in Data.Profunctor.Strong | |
ProfunctorAdjunction Copastro Cotambara Source # | |
Defined in Data.Profunctor.Strong | |
Profunctor (Copastro p) Source # | |
Defined in Data.Profunctor.Strong dimap :: (a -> b) -> (c -> d) -> Copastro p b c -> Copastro p a d Source # lmap :: (a -> b) -> Copastro p b c -> Copastro p a c Source # rmap :: (b -> c) -> Copastro p a b -> Copastro p a c Source # (#.) :: Coercible c b => (b -> c) -> Copastro p a b -> Copastro p a c Source # (.#) :: Coercible b a => Copastro p b c -> (a -> b) -> Copastro p a c Source # | |
Costrong (Copastro p) Source # | |