~/talk

Category Theory Through Functional Programming (part 2/3)

slides:none on file

Explains concrete equivalences and code-level shapes: the category of endofunctors is monoidal under composition with Identity as unit, monads are monoid objects in End(C) and translate to Haskell as join :: m (m a) -> m a and return :: a -> m a, naturality follows from parametricity, and monoidal functors = applicative functors so applicative operations implement the monoidal structure. Shows examples (List, Maybe, Either, Identity, Void), uses Haskell types and polymorphic functions, and notes composed monads fail to be monads unless a distributive law exists.

AI-written summary · about

  1. 0:00Introduction to monads
  2. 1:03Natural transformations
  3. 7:14Monoid objects
  4. 15:45Monoidal categories
  5. 24:51Monoidal functors
  6. 35:27Category of endofunctors
  7. 42:22Defining monads
  8. 53:32Comonads and conclusions
~/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.