4 ms·
> There's no straightforward way to make nested record updates. You have to write separate setter functions for every step of the way. A pattern for this kind
by jewbacca 10y ago
> There's no straightforward way to make nested record updates. You have to write separate setter functions for every step of the way.
A pattern for this kind of thing in Haskell is Lenses/Prisms: http://adit.io/posts/2013-07-22-lenses-in-pictures.html http://adit.io/posts/2013-07-22-lenses-in-pictures.html