-
-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from pminten/lens-person
Add lens-person Haskell-specific exercise
- Loading branch information
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |