Copyright | (c) Ashley Yakeley 2007 |
---|---|
License | BSD-style (see the LICENSE file in the distribution) |
Maintainer | [email protected] |
Stability | experimental |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
class Category cat where Source #
A class for categories. Instances should satisfy the laws
f.
id
= f -- (right identity)id
.
f = f -- (left identity) f.
(g.
h) = (f.
g).
h -- (associativity)
Instances
Category (Coercion :: k -> k -> *) Source # | Since: base-4.7.0.0 |
Category ((:~:) :: k -> k -> *) Source # | Since: base-4.7.0.0 |
Category ((:~~:) :: k -> k -> *) Source # | Since: base-4.10.0.0 |
Monad m => Category (Kleisli m :: * -> * -> *) Source # | Since: base-3.0 |
Category ((->) :: * -> * -> *) Source # | Since: base-3.0 |