Please log in to watch this conference skillscast.
Haskell lets you write beautiful, modular code. Rather than waffle generally, I’ll use this talk to look at a particular example, Edward Kmett’s lovely lens library.
Haskell lets you write beautiful, modular code. Rather than waffle generally, I’ll use this talk to look at a particular example, Edward Kmett’s lovely lens library. Lenses have been called “jQuery for data types”: they give you a way to poke around in the guts of some large aggregate structure. Lenses compose (so you can make big lenses by gluing together little ones), and they exploit type classes to allow a remarkable degree of flexibility (get, set, fold, traverse, etc).
One of Haskell’s most egregious shortcomings is that you can’t use the same field name in different record types. I’ll explain how we are planning to fix that (joint work with Adam Gundry), and how the result will fit nicely into the lens world.
YOU MAY ALSO LIKE:
- In The Brain Of Damjan Vujnovnic - The Ins and Outs of Promises in AngularJS (Hands-on) (in London on 2nd December 2015)
- Scrum - The Good, The Bad and The Not So Good (in London on 3rd December 2015)
- Groovy & Grails eXchange 2015 (in London on 14th - 15th December 2015)
- Gojko Adzic's Test Driven Development Workshop (in London on 17th - 18th December 2015)
Lenses: compositional data access and manipulation.
Simon Peyton Jones, MA, MBCS, CEng, graduated from Trinity College Cambridge in 1980. Simon was a key contributor to the design of the now-standard functional language Haskell, and is the lead designer of the widely-used Glasgow Haskell Compiler (GHC). He has written two textbooks about the implementation of functional languages.