~/talk

Some1 Like You Dependent Pairs in Haskell

Talkat LambdaConf 2017 · 2017-05-25..05-27· [typescript]
slides:none on file

Builds a JSON ingest pipeline where a URL-supplied event tag determines the payload type at runtime and uses type‑level machinery so the compiler enforces correctness. It brings in exinst plus singletons and uses DataKinds TypeFamilies ConstraintKinds TemplateHaskell and Servant to lift value tags to types, produce FromJSON/ToJSON dictionaries as values, and represent payloads as a dependent pair. The result auto‑generates API shape and handlers, cuts boilerplate ~75%, and compiles and runs as intended.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:08Building the naive solution
  3. 5:41Refining with prisms
  4. 11:39Data kinds and type families
  5. 15:43Existential types and GADTs
  6. 24:11Understanding singletons
  7. 31:09Implementing the logic
  8. 39:11Extending to JSON serialization
  9. 43:25Conclusion and dependent pairs
~/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.