~/talk

Input Validation in PureScript: Simpler, Safer, and Stronger (Part 2)

Talkat LambdaConf 2018 · 2018-06-03..06-05· [typescript]
links:none on file
slides:none on file

Shows how PureScript validation switches from non-empty lists to a free semi-ring accumulator so branching alternatives accumulate errors correctly, uses Alt and a semiring V to let a field be either email or username, and wires regex-based email checks (unsafe for demo) and pursuit-sourced libraries into composable validators. Code compiles and runs, producing detailed failure records and valid sum-type UserID values, and points to polyform for production and a live demo that compiles and runs.

AI-written summary · about

  1. 0:00Start
  2. 4:12Email Validation Library
  3. 18:41Username Validation
  4. 26:29Validate Username
  5. 31:49Summary Further Reading
  6. 33:42Main Takeaway
~/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.