[Haskell-cafe] What Haskell Records Need
hesselink at gmail.com
Thu Aug 2 12:41:16 CEST 2012
On Thu, Aug 2, 2012 at 12:30 PM, Andrew Butterfield
<Andrew.Butterfield at scss.tcd.ie> wrote:
> On 2 Aug 2012, at 09:25, Erik Hesselink wrote:
>> Isn't this exactly the problem solved by all the lens packages?
>> Current popular ones are fclabels  and data-lens .
>>  http://hackage.haskell.org/package/fclabels
>>  http://hackage.haskell.org/package/data-lens
> Not sure what all of these do, but I have a simple solution I use
> in my work:
They do exactly that. They create 'lenses' which are
getters/setters/modifiers combined, and allow you to compose these to
get/set/modify deep inside nested data types. Look at the examples in
the fclabels documentation  for more details.
More information about the Haskell-Cafe