proarrow-0: Category theory with a central role for profunctors
Safe HaskellNone
LanguageHaskell2010

Proarrow.Profunctor.Composition

Synopsis
  • data ((p :: PRO i j) :.: (q :: PRO j k)) (a :: i) (c :: k) where
    • (:.:) :: forall {i} {j} {k} (p :: PRO i j) (a :: i) (b :: j) (q :: PRO j k) (c :: k). p a b -> q b c -> (p :.: q) a c
  • bimapComp :: forall {i} {j} {k} (a :: PRO i j) (b :: PRO i j) (c :: PRO j k) (d :: PRO j k). (a ~> b) -> (c ~> d) -> (a :.: c) ~> (b :.: d)
  • o :: forall {i} {j} {k} (p :: PRO i j) (q :: PRO i j) (r :: PRO j k) (s :: PRO j k). Prof p q -> Prof r s -> Prof (p :.: r) (q :.: s)

Documentation

data ((p :: PRO i j) :.: (q :: PRO j k)) (a :: i) (c :: k) where Source Comments #

Constructors

(:.:) :: forall {i} {j} {k} (p :: PRO i j) (a :: i) (b :: j) (q :: PRO j k) (c :: k). p a b -> q b c -> (p :.: q) a c 

Instances

Instances details
(MonoidalProfunctor p, MonoidalProfunctor q) => MonoidalProfunctor (p :.: q :: j1 -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

lift0 :: (p :.: q) (Unit :: j1) (Unit :: k) Source Comments #

lift2 :: forall (x1 :: j1) (x2 :: k) (y1 :: j1) (y2 :: k). (p :.: q) x1 x2 -> (p :.: q) y1 y2 -> (p :.: q) (x1 ** y1) (x2 ** y2) Source Comments #

(Profunctor p, Profunctor q) => Profunctor (p :.: q :: j1 -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

dimap :: forall (c :: j1) (a :: j1) (b :: k) (d :: k). (c ~> a) -> (b ~> d) -> (p :.: q) a b -> (p :.: q) c d Source Comments #

(\\) :: forall (a :: j1) (b :: k) r. ((Ob a, Ob b) => r) -> (p :.: q) a b -> r Source Comments #

(Corepresentable p, Corepresentable q) => Corepresentable (p :.: q :: j1 -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

coindex :: forall (a :: j1) (b :: k). (p :.: q) a b -> ((p :.: q) %% a) ~> b Source Comments #

cotabulate :: forall (a :: j1) (b :: k). Ob a => (((p :.: q) %% a) ~> b) -> (p :.: q) a b Source Comments #

corepMap :: forall (a :: j1) (b :: j1). (a ~> b) -> ((p :.: q) %% a) ~> ((p :.: q) %% b) Source Comments #

(Representable p, Representable q) => Representable (p :.: q :: j1 -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

index :: forall (a :: j1) (b :: k). (p :.: q) a b -> a ~> ((p :.: q) % b) Source Comments #

tabulate :: forall (b :: k) (a :: j1). Ob b => (a ~> ((p :.: q) % b)) -> (p :.: q) a b Source Comments #

repMap :: forall (a :: k) (b :: k). (a ~> b) -> ((p :.: q) % a) ~> ((p :.: q) % b) Source Comments #

(Adjunction l1 r1, Adjunction l2 r2) => Adjunction (l1 :.: l2 :: k -> i -> Type) (r2 :.: r1 :: i -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Adjunction

Methods

unit :: forall (a :: i). Ob a => ((r2 :.: r1) :.: (l1 :.: l2)) a a Source Comments #

counit :: ((l1 :.: l2) :.: (r2 :.: r1)) :~> ((~>) :: CAT k) Source Comments #

Adjunction p q => Promonad (q :.: p :: k -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Adjunction

Methods

id :: forall (a :: k). Ob a => (q :.: p) a a Source Comments #

(.) :: forall (b :: k) (c :: k) (a :: k). (q :.: p) b c -> (q :.: p) a b -> (q :.: p) a c Source Comments #

Functor ((:.:) :: PRO i j -> PRO j k -> i -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

map :: forall (a :: PRO i j) (b :: PRO i j). (a ~> b) -> ((:.:) a :: PRO j k -> i -> k -> Type) ~> ((:.:) b :: PRO j k -> i -> k -> Type) Source Comments #

Profunctor j2 => Adjunction (Star ((:.:) j2 :: PRO j1 k -> i -> k -> Type) :: (i -> k -> Type) -> PRO j1 k -> Type) (Star (Ran ('OP j2) :: PRO i k -> j1 -> k -> Type) :: (j1 -> k -> Type) -> PRO i k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Ran

Methods

unit :: forall (a :: PRO j1 k). Ob a => (Star (Ran ('OP j2) :: PRO i k -> j1 -> k -> Type) :.: Star ((:.:) j2 :: PRO j1 k -> i -> k -> Type)) a a Source Comments #

counit :: (Star ((:.:) j2 :: PRO j1 k -> i -> k -> Type) :.: Star (Ran ('OP j2) :: PRO i k -> j1 -> k -> Type)) :~> ((~>) :: CAT (i -> k -> Type)) Source Comments #

Profunctor p => Functor ((:.:) p :: PRO j k -> i -> k -> Type) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

Methods

map :: forall (a :: PRO j k) (b :: PRO j k). (a ~> b) -> (p :.: a) ~> (p :.: b) Source Comments #

type (p :.: q :: j1 -> k -> Type) %% (a :: j1) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

type (p :.: q :: j1 -> k -> Type) %% (a :: j1) = q %% (p %% a)
type (p :.: q :: j1 -> k -> Type) % (a :: k) Source Comments # 
Instance details

Defined in Proarrow.Profunctor.Composition

type (p :.: q :: j1 -> k -> Type) % (a :: k) = p % (q % a)

bimapComp :: forall {i} {j} {k} (a :: PRO i j) (b :: PRO i j) (c :: PRO j k) (d :: PRO j k). (a ~> b) -> (c ~> d) -> (a :.: c) ~> (b :.: d) Source Comments #

o :: forall {i} {j} {k} (p :: PRO i j) (q :: PRO i j) (r :: PRO j k) (s :: PRO j k). Prof p q -> Prof r s -> Prof (p :.: r) (q :.: s) Source Comments #

Horizontal composition