Basic optics: lenses, prisms, and traversals in Haskell
Lenses are becoming an increasingly important part of a Haskeller’s toolkit. Yet, when first approaching them, people may feel buried under a myriad of different lens-like thingies, and the complexity of some of the libraries implementing those concepts, like lens.
The goal of this talk is to provide a conceptual overview of three of the most important kinds of optics, namely lenses, prisms, and traversals. For most data types, those optics can be automatically generated, something we shall discuss. Finally, we shall look at one useful application of optics: treating semi-structured data such as JSON documents.
Speaker: Alejandro Serrano
Twitter: / trupill
Language: Haskell
Recorded: June 16th, 2020
This talk is a 47 Degrees Academy event. Find out more here:
Site: https://www.47deg.com/academy
Slack: https://join.slack.com/t/47degreesaca...
Haskell Fundamentals - two-day intensive course - June 6th-7th
Find out more and register here: https://www.47deg.com/academy/2020-07...
#haskell #functionalprogramming