Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lens-person.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Updating fields of nested records is kind of annoying in Haskell. One solution
is to use [lenses](https://wiki.haskell.org/Lens). Implement several record
accessing functions using lenses, you may use any library you want. The test
suite also allows you to avoid lenses alltogether so you can experiment with
different approaches.
5 changes: 5 additions & 0 deletions lens-person.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
blurb: "(Haskell specific) use lenses to update nested records."
common:
type: focus
focus: lenses