~/talk

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

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

Claims that PureScript plus its Validation library and row polymorphism makes input validation predictable and composable, and demonstrates concrete code: primitive validators (min/max length, contains upper/lower), V validation type with non-empty error lists, Applicative-based accumulation that concatenates errors via Semigroup, newtype-wrapped Email/Password fields, record row-based form validation that builds a validated record, and a pragmatic conversion to Either for fail-fast sequencing; workshop runs in two hours and produces validators that accumulate all failures unless explicitly converted.

AI-written summary · about

  1. 0:00Start
  2. 0:12Input Validation in PureScript
  3. 4:14Validations on Primitive Types
  4. 13:34Combining Primitive Validations
  5. 31:19Validations on Forms
~/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.