~/talk

Depending on Types

Talkat Code Mesh 2015 · 2015-11-03..11-04· [typescript]
slides:none on file

Argues that Haskell already supports a lot of dependently typed programming by using GADTs, datatype promotion and type families to encode invariants; demonstrates with a red‑black tree implementation that adds precise types for red-black trees, `hidden`/`almost` tree forms, `balance`/`insert`, and singleton types to keep runtime values. Notes some patterns cannot be promoted yet, presents a GHC branch (Eisenberg) that lifts promotion limits, uses a singleton library as a workaround, and contrasts weaker totality guarantees versus Agda/Idris/Coq.

AI-written summary · about

  1. 0:00Introduction
  2. 1:16Overview
  3. 1:47Running Example
  4. 3:48Red Black Trees
  5. 6:34Rebalancing
  6. 8:43Type checker
  7. 11:58Dependent types
  8. 13:49RBT type
  9. 15:56GHC type
  10. 17:37Differences between types
  11. 18:59Type promotion
  12. 19:30Erased types
  13. 26:15Hidden trees
  14. 30:30Type family
  15. 36:07Not proving is simpler
  16. 38:31Whats next
  17. 41:06Why not Haskell
~/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.