pandora-0.4.6: A box of patterns and paradigms
Safe HaskellSafe-Inferred
LanguageHaskell2010

Pandora.Pattern.Category

Synopsis

Documentation

class Semigroupoid m => Category m where Source #

When providing a new instance, you should ensure it satisfies:
* Left identity: identity . f ≡ f
* Right identity: f . identity ≡ f

Minimal complete definition

identity

Methods

identity :: m a a Source #

($) :: m (m a b) (m a b) infixr 0 Source #

(#) :: m (m a b) (m a b) infixl 2 Source #

Instances

Instances details
Category (<--) Source # 
Instance details

Defined in Pandora.Paradigm.Primary.Algebraic.Exponential

Methods

identity :: a <-- a Source #

($) :: (a <-- b) <-- (a <-- b) Source #

(#) :: (a <-- b) <-- (a <-- b) Source #

Category (Lens Identity) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Optics

Category (Lens Maybe) Source # 
Instance details

Defined in Pandora.Paradigm.Inventory.Optics

Category ((->) :: Type -> Type -> Type) Source # 
Instance details

Defined in Pandora.Paradigm.Primary.Algebraic.Exponential

Methods

identity :: a -> a Source #

($) :: (a -> b) -> (a -> b) Source #

(#) :: (a -> b) -> (a -> b) Source #