base-4.7.0.0: Basic libraries

Copyright(c) Ashley Yakeley 2007
License(c) Ashley Yakeley 2007
Maintainerashley@semantic.org
Stabilityexperimental
Portabilityportable
Safe HaskellTrustworthy

Control.Category

Description

 

Synopsis

Documentation

class Category cat whereSource

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

Methods

id :: cat a aSource

the identity morphism

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

morphism composition

Instances

Category * (->) 
Monad m => Category * (Kleisli m) 
Category k (:=: k) 

(<<<) :: Category cat => cat b c -> cat a b -> cat a cSource

Right-to-left composition

(>>>) :: Category cat => cat a b -> cat b c -> cat a cSource

Left-to-right composition