HackerTube.dev

John Wiegley: Putting Lenses to Work

Bay Area Haskell · 12.6K views · 2017-04-22 · 47:19

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

John Wiegley's BayHac 2017 talk walks through Haskell lenses by example, showing many practical uses beyond simple record access. It is aimed at people who want to become productive with the lens library.

On Hacker News

HN recommends it as the fastest way to learn lenses by example, with far-out examples later on.

Recommended by 4 HN people across 4 months · HN mentions 2020–2024

Topics

Search by tags

What people said

turboponyy · 2024-07 · Strong recommendation

As with anything Haskell, one could simply reply with "here's the formal definition." But in easily digestible terms, it's a way to narrow your view over a collection to a subset that satisfies some property, and perhaps perform some operations on that subset. This video presentation (with a very humorous audience dynamic, might I add) serves as a great introduction by example: [VIDEO]

Read the original HN comment ↗
platz · 2020-06 · Strong recommendation

and you can learn enough lens to be productive in 1 hours with this talk without reading docs at all. You can skip the theory and go straight to usage: [VIDEO]

Read the original HN comment ↗
lgas · 2022-11 · Recommendation

Definitely agree on lenses being one of the more mind blowing things I've encountered and eventually grokked in programming. I would also recommend [VIDEO] as a good video on lenses in part because the latter portion has some pretty far-out examples of that deep well you mentioned.

Read the original HN comment ↗

Sources

Video by Bay Area Haskell, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources