Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Profunctor p => Representable (p :: j +-> k) where Source Comments #
index :: forall (a :: k) (b :: j). p a b -> a ~> (p % b) Source Comments #
tabulate :: forall (b :: j) (a :: k). Ob b => (a ~> (p % b)) -> p a b Source Comments #
repMap :: forall (a :: j) (b :: j). (a ~> b) -> (p % a) ~> (p % b) Source Comments #
Instances
repObj :: forall {j} {k} (p :: j +-> k) (a :: j). (Representable p, Ob a) => Obj (p % a) Source Comments #
withRepObj :: forall {j} {k} (p :: j +-> k) (a :: j) r. (Representable p, Ob a) => (Ob (p % a) => r) -> r Source Comments #
dimapRep :: forall {j} {k} p (a :: k) (b :: j) (c :: k) (d :: j). Representable p => (c ~> a) -> (b ~> d) -> p a b -> p c d Source Comments #
data RepStar (p :: j +-> k) (a :: k) (b :: j) where Source Comments #
Instances
Representable p => Profunctor (RepStar p :: j -> k -> Type) Source Comments # | |
Representable p => Representable (RepStar p :: k -> j -> Type) Source Comments # | |
Defined in Proarrow.Profunctor.Representable | |
type (RepStar p :: k -> j -> Type) % (a :: j) Source Comments # | |
Defined in Proarrow.Profunctor.Representable |
data CorepStar (p :: k +-> j) (a :: k) (b :: j) where Source Comments #
Instances
Corepresentable p => Profunctor (CorepStar p :: j -> k -> Type) Source Comments # | |
Corepresentable p => Representable (CorepStar p :: k -> j -> Type) Source Comments # | |
Defined in Proarrow.Profunctor.Representable index :: forall (a :: k) (b :: j). CorepStar p a b -> a ~> (CorepStar p % b) Source Comments # tabulate :: forall (b :: j) (a :: k). Ob b => (a ~> (CorepStar p % b)) -> CorepStar p a b Source Comments # repMap :: forall (a :: j) (b :: j). (a ~> b) -> (CorepStar p % a) ~> (CorepStar p % b) Source Comments # | |
type (CorepStar p :: k -> j -> Type) % (a :: j) Source Comments # | |
Defined in Proarrow.Profunctor.Representable |
data RepCostar (p :: k +-> j) (a :: k) (b :: j) where Source Comments #
Instances
Representable f => Adjunction (f :: k +-> j) (RepCostar f :: k -> j -> Type) Source Comments # | |
MonoidalProfunctor (RepCostar Free) Source Comments # | Free is also a colax monoidal functor |
MonoidalProfunctor (RepCostar Forget) Source Comments # | Forget is also a colax monoidal functor |
(MonoidalProfunctor r, Adjunction l r, Representable l, Representable r, Monoidal j, Monoidal k) => MonoidalProfunctor (RepCostar l :: k -> j -> Type) Source Comments # | |
Representable p => Profunctor (RepCostar p :: j -> k -> Type) Source Comments # | |
Representable p => Corepresentable (RepCostar p :: k -> j -> Type) Source Comments # | |
Defined in Proarrow.Profunctor.Representable coindex :: forall (a :: k) (b :: j). RepCostar p a b -> (RepCostar p %% a) ~> b Source Comments # cotabulate :: forall (a :: k) (b :: j). Ob a => ((RepCostar p %% a) ~> b) -> RepCostar p a b Source Comments # corepMap :: forall (a :: k) (b :: k). (a ~> b) -> (RepCostar p %% a) ~> (RepCostar p %% b) Source Comments # | |
type (RepCostar p :: k -> j -> Type) %% (a :: k) Source Comments # | |
Defined in Proarrow.Profunctor.Representable |