| License | BSD-style (see the file LICENSE) |
|---|---|
| Maintainer | sjoerd@w3future.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Category.Cube
Description
The cube category.
Documentation
data Cube :: * -> * -> * where #
Constructors
| Z :: Cube Z Z | |
| S :: Cube x y -> Cube (S x) (S y) | |
| Y :: Sign -> Cube x y -> Cube x (S y) | |
| X :: Cube x y -> Cube (S x) y |
Instances
| Category Cube # | |
| HasTerminalObject Cube # | |
Defined in Data.Category.Cube Associated Types type TerminalObject Cube :: Kind k # Methods terminalObject :: Obj Cube (TerminalObject Cube) # terminate :: forall (a :: k). Obj Cube a -> Cube a (TerminalObject Cube) # | |
| type TerminalObject Cube # | |
Defined in Data.Category.Cube | |
Constructors
| Forget |
Instances
| Functor Forget # | Turn |
| type Dom Forget # | |
Defined in Data.Category.Cube | |
| type Cod Forget # | |
Defined in Data.Category.Cube | |
| type Forget :% n # | |
Defined in Data.Category.Cube | |
Constructors
| Add |
Instances
| Functor Add # | Ordinal addition is a bifuntor, it concattenates the maps as it were. |
| TensorProduct Add # | |
Defined in Data.Category.Cube Methods unitObject :: Add -> Obj (Cod Add) (Unit Add) # leftUnitor :: Cod Add ~ k => Add -> Obj k a -> k (Add :% (Unit Add, a)) a # leftUnitorInv :: Cod Add ~ k => Add -> Obj k a -> k a (Add :% (Unit Add, a)) # rightUnitor :: Cod Add ~ k => Add -> Obj k a -> k (Add :% (a, Unit Add)) a # rightUnitorInv :: Cod Add ~ k => Add -> Obj k a -> k a (Add :% (a, Unit Add)) # associator :: Cod Add ~ k => Add -> Obj k a -> Obj k b -> Obj k c -> k (Add :% (Add :% (a, b), c)) (Add :% (a, Add :% (b, c))) # associatorInv :: Cod Add ~ k => Add -> Obj k a -> Obj k b -> Obj k c -> k (Add :% (a, Add :% (b, c))) (Add :% (Add :% (a, b), c)) # | |
| type Dom Add # | |
| type Cod Add # | |
Defined in Data.Category.Cube | |
| type Unit Add # | |
Defined in Data.Category.Cube | |
| type Add :% (S m, n) # | |
| type Add :% (Z, n) # | |
Defined in Data.Category.Cube | |