Control.Category

Control.Category

Copyright (c) Ashley Yakeley 2007
License BSD-style (see the LICENSE file in the distribution)
Maintainer ashley@semantic.org
Stability experimental
Portability portable
Safe Haskell Trustworthy
Language Haskell2010

Description

class Category cat where Source

A class for categories. id and (.) must form a monoid.

Minimal complete definition

id, (.)

Methods

id :: cat a a Source

the identity morphism

(.) :: cat b c -> cat a b -> cat a c infixr 9 Source

morphism composition

Instances

Category k (Coercion k)

Methods

id :: cat a a Source

(.) :: cat b c -> cat a b -> cat a c Source

Category k ((:~:) k)

Methods

id :: cat a a Source

(.) :: cat b c -> cat a b -> cat a c Source

Category * (->)

Methods

id :: cat a a Source

(.) :: cat b c -> cat a b -> cat a c Source

Monad m => Category * (Kleisli m)

Methods

id :: cat a a Source

(.) :: cat b c -> cat a b -> cat a c Source

(<<<) :: Category cat => cat b c -> cat a b -> cat a c infixr 1 Source

Right-to-left composition

(>>>) :: Category cat => cat a b -> cat b c -> cat a c infixr 1 Source

Left-to-right composition

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.0.1/docs/html/libraries/base-4.9.0.0/Control-Category.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部