License | BSD-style (see the file LICENSE) |
---|---|
Maintainer | sjoerd@w3future.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
extend :: Comonad w => Square '[Costar w] '[] '[w] '[w] Source #
+--w--+ | v | w<-E | | v | +--w--+
extend
as a square
Right identity law:
+--w--+ | v | +--w--+ w<-E | | v | | v | === w<-/ | | X | | | +-----+ +-----+
Left identity law:
+---w-+ | v | +--w--+ | /-E | | | | | v | | === | v | | X v | | | | +---w-+ +--w--+
Associativity law:
+--w--+ +---w-+ | v | | v | w<-E | | /-E | | v | === w<E | | w<-E | | | | | | v | w</ v | +--w--+ +---w-+