~/talk

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

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

Shows how to implement concrete generic operations: a working generic equality via GHC.Generics that compiles, the from/to pattern, and a default signature that derives Eq by converting values to their representation. Demonstrates the alternatives: a generics-sop code as type-level lists encoding constructors as lists of fields, using promoted datatypes and singletons to materialize runtime reps, and building per-field constraint bundles with Constraint Kinds traversal. Notes that GHC can optimize handcrafted generics but the examples actually compile and run.

AI-written summary · about

  1. 0:00Start
  2. 10:33Default Class Definitions
  3. 21:19Data Type Promotion
  4. 32:31Generic 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.