~/talk

Playing with Shapeless

Talkat Scale By the Bay 2017 · 2017-11-16..11-18· [scala, functional-programming]
links:none on file
links:none on file
slides:none on file

Play-Formless generates Play Framework Form mappings from case classes using Shapeless (LabelledGeneric, HLists and singleton-typed symbols) so a full form can be derived in one line of code. It provides type-driven defaults via polymorphic function values, handles refined types to turn type-level constraints into runtime validators, and enables type-safe field access with symbol names checked at compile time. It works at compile time with negligible runtime overhead but has rough IDE support and sometimes obscure compile errors.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:06Play Framework form mappings
  3. 3:11Problems with current approach
  4. 4:59How Shapeless integration works
  5. 8:09Transforming HLists to mappings
  6. 13:12Default mappings from types
  7. 16:46Refined types integration
  8. 19:26Benefits and downsides
  9. 20:50About Interval and Q&A
~/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.