~/talk

Haskell The Legend of DSLs

Talkat ZuriHac 2022 · on Wednesday, 2022-06-15· [haskell]
slides:none on file

Builds a small DSL for a trading card game: ADTs for cards, ten energy types, attacks with costs and damage, and actions that include coin flips and loops (iron tail = flip until tails). Uses Text, Natural, GADTs, and abstracts execution with the operational monad so handlers become interpreters; first interpreter is random IO, the pure tester is interpretPure that consumes a list of flip outcomes, and property tests run with QuickCheck + tasty. The DSL composes, the loop is expressible succinctly, and tests catch counterexamples.

AI-written summary · about

  1. 0:00Start
  2. 11:17Energies
  3. 15:34Type Alias in Haskell
  4. 26:05Model Actions
  5. 51:22Property-Based Testing
  6. 1:02:00Summary
  7. 1:04:08Initial Style
~/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.