~/talk

What You Needa Know About Yoneda

slides:none on file

Explains the Yoneda lemma concretely and shows how two ubiquitous Haskell encodings are isomorphic: getter/setter pairs ↔ profunctor representations. Uses Haskell code (map and identity directions), the profunctor optics abstraction, and the co/contra variants to prove lenses, prisms and adapters compose where naive pairs don’t. Gives concrete examples — lists (difference-list fast reverse), orders, monoids, and an IoT toaster command GADT — and demonstrates the isomorphisms shorten proofs and enable free-monad-style ASTs where the naïve type wasn’t a functor, so the approach is both practical and verified.

AI-written summary · about

  1. 0:00Start
  2. 17:53Making Commands
  3. 25:23Compositional References to Components within Composite Data Structures
  4. 30:56Pro Functor Optics
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.