Welcome to FP Day, 13 May 2019
‘Welcome to FP’ is a one day intro workshop day taking place on May 13th. If you are new to Functional Programming, these workshops are for you!
Ed Kmett and Tony Morris – “Let’s Lens”
Level: some familiarity with Haskell and FP
Let’s Lens presents a series of exercises, in a similar format to the Data61 functional programming course material. The subject of the exercises is around the concept of lenses, initially proposed by Foster et al., to solve the view-update problem of relational databases.
The theories around lenses have been advanced significantly in recent years, resulting in a library, implemented in Haskell, called lens.
This workshop will take you through the basic definition of the lens data structure and its related structures such as traversals and prisms. Following this we implement some of the low-level lens library, then go on to discuss and solve a practical problem that uses all of these structures.