~/talk

Let's Lens - Part 4 of 5

Talkat LambdaConf 2017 · 2017-05-25..05-27· [typescript]
slides:none on file

Exercises build concrete lenses in Haskell (requires GHC 7.8+) and walk from simple get/set to modern constructions, using the Lets.GetSetLens and Lets.Lens` modules and the real lens package. Code shows an alongside pattern, implementing a Map lens that does lookup then insert or delete, uses modify vs set, composes optics, and checks the lens laws. The repository examples compile against the course code and demonstrate the actual implementations and small runnable proofs rather than abstract promises.

AI-written summary · about

  1. 0:00Introduction
  2. 3:29Lenses and isomorphisms
  3. 12:10Getter and setter functions
  4. 22:33Map lenses implementation
  5. 31:29Pattern recognition in composition
  6. 37:50Monadic patterns and laws
  7. 41:29Lens package and next steps
  8. 50:17Map modification exercise
~/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.