mirror of
https://github.com/qfpl/applied-fp-course.git
synced 2024-11-22 19:34:33 +03:00
.. | ||
bin | ||
src/FirstApp | ||
tests | ||
appconfig.json | ||
changelog.md | ||
default.nix | ||
level06.cabal | ||
level06.nix | ||
LICENCE | ||
README.md | ||
Setup.hs | ||
stack.yaml | ||
test.json |
Level 06
This exercise involves introducing a monad transformer (ReaderT) to our application. The use of the ReaderT in our application is motivated in part by the expansion of the number of inputs to the various functions involved in handling different requests.
Since nearly any given request handler will likely require access to either the general application configuration or the database, it is tedious to have to pass the information in manually in every instance.
Start in src/FirstApp/AppM.hs
.