Skip to content

Commit 858fe38

Browse files
committed
Merge pull request #97 from pminten/lens-person
Add lens-person Haskell-specific exercise
2 parents 4c24c01 + bd26f22 commit 858fe38

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lens-person.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Updating fields of nested records is kind of annoying in Haskell. One solution
2+
is to use [lenses](https://wiki.haskell.org/Lens). Implement several record
3+
accessing functions using lenses, you may use any library you want. The test
4+
suite also allows you to avoid lenses alltogether so you can experiment with
5+
different approaches.

lens-person.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
blurb: "(Haskell specific) use lenses to update nested records."
3+
common:
4+
type: focus
5+
focus: lenses

0 commit comments

Comments
 (0)