category-extras-0.44.4: Various modules and constructs inspired by category theory

Portabilityportable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>

Control.Comonad.Parameterized

Description

 

Documentation

class Bifunctor f whereSource

Methods

bimap :: (a -> c) -> (b -> d) -> f a b -> f c dSource

first :: (a -> c) -> f a b -> f c bSource

second :: (b -> d) -> f a b -> f a dSource

class Bifunctor f => PCopointed f whereSource

Methods

pextract :: f a c -> aSource

Instances

class PCopointed f => PComonad f whereSource

Methods

pextend :: (f b c -> a) -> f b c -> f a cSource

Instances