~/talk

Modeling Data in Haskell for Beginners

Talkat LambdaConf 2015 · 2015-05-22..05-24· [developer-experience]
links:none on file
slides:none on file

Starts by claiming real modeling is done with concrete types not prose and shows it: use GHCi and type signatures to write algebraic data types, count inhabitants (e.g. singletons =1, Bool=2, a three‑constructor type =3, product of two Bool =4), prefer Maybe/Either over ad‑hoc nulls, exploit phantom types for state tracking, use record/tuple syntax and pattern matching, and prototype a tiny parser to turn SVO strings into a verb data model. Exercises and REPL demos validate the approach.

AI-written summary · about

  1. 0:00Start
  2. 4:33Constructors?
  3. 12:44What can this function do?
  4. 28:51How do we use Identity?
  5. 35:59Haskell datatype syntax
  6. 43:41Person with record syntax
  7. 55:57Nesting tuples
  8. 56:41Exercises
~/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.