~/talk

Singletons and You in Haskell

Talkat LambdaConf 2017 · 2017-05-25..05-27· [machine-learning]
name:Justin Le
links:none on file
slides:none on file

Shows how Richard Eisenberg's singletons library actually gives runtime witnesses so type-level states become usable values, illustrated by a GADT Door state example (open closed locked). Demonstrates how the library generates singletons for free and provides instances to turn types into witness values that let code pattern match on types, constrain functions by precise states, and emulate dependent behavior for state machines, refined strings, and tagged sanitization without manual boilerplate.

AI-written summary · about

  1. 0:00Start
  2. 8:11THE SINGLETON PATTERN
  3. 8:43DOOR STATUS
  4. 9:45IMPLICIT PASSING
  5. 11:06SINGLETONS TO THE RESCUE
~/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.