~/talk

A Hands on Tutorial to Generic Programming in Haskell (Part 1)

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
slides:none on file

Shows how Haskell’s built‑in GHC generics actually work: the U1/K1/:+:/:× building blocks, how to write/from conversions, and how GHC can auto‑derive Generic so the examples compile. Walks through a concrete pet/fish/dog datatype, prints the generated rep with metadata, and implements a working generic equality instance. Exposes practical limits (one‑level depth, Generic vs Generic1, generics‑sop) and compiles live code.

AI-written summary · about

  1. 0:00Start
  2. 4:34Functors
  3. 11:57Public Service Announcement
  4. 18:10Generic Conversion Function
  5. 25:35Metadata
  6. 31:35Define Generic Equality
~/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.