profunctors-4.2.0.1: Profunctors

Safe HaskellTrustworthy

Data.Profunctor.Closed

Synopsis

Documentation

class Profunctor p => Closed p whereSource

A strong profunctor allows the monoidal structure to pass through.

A closed profunctor allows the closed structure to pass through.

Methods

closed :: p a b -> p (x -> a) (x -> b)Source

Instances

newtype Closure p a b Source

Closure adjoins a Closed structure to any Profunctor.

Analogous to Tambara for Closed.

Constructors

Closure 

Fields

runClosure :: forall x. p (x -> a) (x -> b)
 

close :: Closed p => (p :-> q) -> p :-> Closure qSource

data Environment p a b whereSource

Constructors

Environment :: ((z -> y) -> b) -> p x y -> (a -> z -> x) -> Environment p a b