Let's Lens - Part 1 of 5
summary
History and exercises focus on concrete implementations: Haskell code in the linked repos (requires GHC 7.8), exercises for Lets.GetSetLens and the optic/polymorphic versions, runnable doctests and QuickCheck examples, and a working library called lens. The talk gives actual definitions (the lens as getter+setter pair and the van Laarhoven representation), the three lens laws, worked modifier/set/get code, and how composing lens/prism/traversal produces the surprising, practical utilities that actually compile and test.
AI-written summary · about
chapters (6)
- 0:00Start
- 8:19Syntax
- 9:20Category Theory
- 12:48Polymorphic Update Problem
- 16:12The Get Set Law
- 45:56What Is a Lens
related talks
30mFunctional lenses for contemporary frameworks
49mBetter software design with domain modelling
39mProfunctor Optics for state management
01h 05mThe Imperatives Must Go!
56mLaw of Demeter: A Practical Guide to Loose Coupling
01h 44mPractical Observable Sharing
49mScalaz, or: how I learned to stop worrying and love monads
27mLightning Talks - Day 1
