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