squares-0.1: The double category of Hask functors and profunctors

LicenseBSD-style (see the file LICENSE)
Maintainersjoerd@w3future.com
Safe HaskellSafe
LanguageHaskell2010

Data.Functor.Square

Contents

Description

 
Synopsis

Squares for Identity

fromIdentity :: Square '[] '[] '[Identity] '[] Source #

 +--I--+
 |  v  |
 |  @  |
 |     |
 +-----+

toIdentity :: Square '[] '[] '[] '[Identity] Source #

+-----+
|     |
|  @  |
|  v  |
+--I--+

Squares for Compose

fromCompose :: (Functor f, Functor g) => Square '[] '[] '[Compose g f] '[f, g] Source #

 +-g.f-+
 |  v  |
 | /@\ |
 | v v |
 +-f-g-+

toCompose :: (Functor f, Functor g) => Square '[] '[] '[f, g] '[Compose g f] Source #

 +-f-g-+
 | v v |
 | \@/ |
 |  v  |
 +-g.f-+