Skip to content

Commit

Permalink
Merge pull request #97 from pminten/lens-person
Browse files Browse the repository at this point in the history
Add lens-person Haskell-specific exercise
  • Loading branch information
kytrinyx committed Jun 29, 2015
2 parents 4c24c01 + bd26f22 commit 858fe38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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

0 comments on commit 858fe38

Please sign in to comment.