Safe Haskell | None |
---|---|
Language | Haskell2010 |
Proarrow.Category.Instance.Rel
Documentation
class (ThinProfunctor p, Discrete j, Discrete k) => Relation (p :: j +-> k) Source Comments #
Instances
(ThinProfunctor p, Discrete j, Discrete k) => Relation (p :: j +-> k) Source Comments # | |
Defined in Proarrow.Category.Instance.Rel |
data Converse (p :: j +-> k) (a :: j) (b :: k) where Source Comments #
Instances
Relation p => Profunctor (Converse p :: k -> j -> Type) Source Comments # | |
Relation p => ThinProfunctor (Converse p :: k -> j -> Type) Source Comments # | |
(Relation p, Representable p) => Corepresentable (Converse p :: k -> j -> Type) Source Comments # | |
Defined in Proarrow.Category.Instance.Rel Methods coindex :: forall (a :: k) (b :: j). Converse p a b -> (Converse p %% a) ~> b Source Comments # cotabulate :: forall (a :: k) (b :: j). Ob a => ((Converse p %% a) ~> b) -> Converse p a b Source Comments # corepMap :: forall (a :: k) (b :: k). (a ~> b) -> (Converse p %% a) ~> (Converse p %% b) Source Comments # | |
type (Converse p :: k -> j -> Type) %% (a :: k) Source Comments # | |
Defined in Proarrow.Category.Instance.Rel | |
type HasArrow (Converse p :: k -> j -> Type) (a :: k) (b :: j) Source Comments # | |
Defined in Proarrow.Category.Instance.Rel |
asImplication :: forall {k} {j} (a :: k) (b :: j) (p :: j +-> k) (q :: j +-> k) r. (Relation p, Relation q) => (p :~> q) -> (Ob a, Ob b, HasArrow p a b) => (HasArrow q a b => r) -> r Source Comments #
reprIsFunctional :: forall {j} {k1} (p :: j +-> k1). (Relation p, Representable p) => (p :.: Converse p) :~> ((~>) :: CAT k1) Source Comments #
reprIsTotal :: forall {k1} {j} (p :: k1 +-> j). (Relation p, Representable p) => ((~>) :: CAT k1) :~> (Converse p :.: p) Source Comments #
adjToConverse :: forall {j} {k} (p :: j +-> k) (q :: k +-> j). (Relation p, Relation q, Adjunction p q) => q :~> Converse p Source Comments #