Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Profunctor p => Representable (p :: PRO j k) where Source Comments #
index :: forall (a :: j) (b :: k). p a b -> a ~> (p % b) Source Comments #
tabulate :: forall (b :: k) (a :: j). Ob b => (a ~> (p % b)) -> p a b Source Comments #
repMap :: forall (a :: k) (b :: k). (a ~> b) -> (p % a) ~> (p % b) Source Comments #
Instances
withRepCod :: forall {k1} {k2} (p :: PRO k1 k2) (a :: k2) r. (Representable p, Ob a) => (Ob (p % a) => r) -> r Source Comments #