Safe Haskell | None |
---|---|
Language | Haskell2010 |
Proarrow.Category.Enriched
Synopsis
- class (Monoidal v, Profunctor p) => Enriched v (p :: j +-> k) where
- type Self k = SUBCAT (Any :: k -> Constraint)
Documentation
class (Monoidal v, Profunctor p) => Enriched v (p :: j +-> k) where Source Comments #
Working with enriched categories and profunctors in Haskell is hard. Instead we encode them using the underlying regular category/profunctor, and show that the enriched structure can be recovered.
Methods
underlying :: forall (a :: k) (b :: j). p a b -> (Unit :: v) ~> Hom v p a b Source Comments #
enriched :: forall (a :: k) (b :: j). (Ob a, Ob b) => ((Unit :: v) ~> Hom v p a b) -> p a b Source Comments #