From bd26f22da9afaf69129727efd4ff485a052013a8 Mon Sep 17 00:00:00 2001 From: Peter Minten Date: Mon, 29 Jun 2015 16:56:41 +0200 Subject: [PATCH] Add lens-person Haskell-specific exercise --- lens-person.md | 5 +++++ lens-person.yml | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 lens-person.md create mode 100644 lens-person.yml diff --git a/lens-person.md b/lens-person.md new file mode 100644 index 0000000000..0fcd3285e2 --- /dev/null +++ b/lens-person.md @@ -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. diff --git a/lens-person.yml b/lens-person.yml new file mode 100644 index 0000000000..9887130172 --- /dev/null +++ b/lens-person.yml @@ -0,0 +1,5 @@ +--- +blurb: "(Haskell specific) use lenses to update nested records." +common: + type: focus + focus: lenses