License | BSD-style (see the file LICENSE) |
---|---|
Maintainer | sjoerd@w3future.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Synopsis
- second :: Strong p => Square '[p] '[p] '[(,) a] '[(,) a]
- right :: Choice p => Square '[p] '[p] '[Either a] '[Either a]
- closed :: Closed p => Square '[p] '[p] '[(->) a] '[(->) a]
- map :: (Mapping p, Functor f) => Square '[p] '[p] '[f] '[f]
- fromHom :: Square '[(->)] '[] '[] '[]
- toHom :: Square '[] '[(->)] '[] '[]
- fromProcompose :: (Profunctor p, Profunctor q) => Square '[Procompose q p] '[p, q] '[] '[]
- toProcompose :: (Profunctor p, Profunctor q) => Square '[p, q] '[Procompose q p] '[] '[]
- fromBiff :: Profunctor q => Square '[Biff q f g] '[q] '[f] '[g]
- toBiff :: (Profunctor q, Functor f, Functor g) => Square '[p] '[q] '[h, f] '[k, g] -> Square '[p] '[Biff q f g] '[h] '[k]
Squares for profunctor subclasses
second :: Strong p => Square '[p] '[p] '[(,) a] '[(,) a] Source #
+-a⊗_-+ | v | p--@--p | v | +-a⊗_-+
right :: Choice p => Square '[p] '[p] '[Either a] '[Either a] Source #
+-a⊕_-+ | v | p--@--p | v | +-a⊕_-+
closed :: Closed p => Square '[p] '[p] '[(->) a] '[(->) a] Source #
+-a→_-+ | v | p--@--p | v | +-a→_-+
map :: (Mapping p, Functor f) => Square '[p] '[p] '[f] '[f] Source #
+--f--+ | v | p--@--p | v | +--f--+
Squares for (->)
Squares for Procompose
fromProcompose :: (Profunctor p, Profunctor q) => Square '[Procompose q p] '[p, q] '[] '[] Source #
+-----+ | /-p q.p-@ | | \-q +-----+
toProcompose :: (Profunctor p, Profunctor q) => Square '[p, q] '[Procompose q p] '[] '[] Source #
+-----+ p-\ | | @-q.p q-/ | +-----+