~/talk

Data vs Control: a tale of two functors

slides:none on file

Argues that Haskell has two distinct functor flavors and uses GHC’s linear types to expose them: a data functor (maps over stored values, e.g. list, fixed-size vectors, Traversable) and a control functor (supports do-notation/strength, e.g. monads, IO, state). Presents concrete type signatures, shows why only a linearly consumed closure may capture linear variables, compares ziplist vs cartesian list applicatives, and reports a working linear-base library prototype that encodes the two classes and typechecks the examples.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 1:10Data and control in Haskell
  3. 2:55Functor and Traversable as data
  4. 5:03Applicative and Monad as control
  5. 6:09Lists: both data and control
  6. 8:19Applicative duality in lists
  7. 8:40Lambda calculus and monads
  8. 10:11Vectors: applicative and traversable
  9. 12:15Distinguishing data and control
  10. 13:21Linear types as a prism
  11. 14:02What are linear types?
  12. 16:34Interactive linear type examples
  13. 20:36Linear map and functor types
  14. 24:16Closures and linearity
  15. 26:00Key rule: linearly consumed closures
  16. 26:44Monad bind and linearity
  17. 29:16Data vs control functors
  18. 31:31Data and control applicatives
  19. 33:17Examples of functors
  20. 36:07Data monads and control monads
  21. 37:28List comprehensions and control
  22. 39:18General framework and Moggi
  23. 41:28Strength and strong monads
  24. 44:19Strong functors and control
  25. 45:44Enriched category theory
  26. 46:49Summary and conclusions
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.