1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-30 02:14:01 +03:00
applied-fp-course/level06
2018-01-10 10:33:56 +10:00
..
bin Ugh, ReaderT lesson added. 2017-08-15 16:42:24 +10:00
src/FirstApp Fixed typo in PostgreSQL module 2017-12-13 17:23:47 +10:00
tests modFieldLabel in level05+ is 'almost' just the identity. 2017-10-05 14:35:39 +10:00
appconfig.json Add guidance about handling requests without persistent storage. 2017-09-11 10:29:56 +10:00
changelog.md change changelog files to lowercase 2017-09-01 11:17:26 +10:00
default.nix Overhauled nix file setup to be more like the other QFPL projects. 2017-09-18 10:14:29 +10:00
level06.cabal Merge branch 'master' of gitlab.com:qfpl/applied-fp-course 2017-09-12 13:41:26 +10:00
level06.nix Overhauled nix file setup to be more like the other QFPL projects. 2017-09-18 10:14:29 +10:00
LICENCE update copyright notice 2017-09-12 11:51:26 +10:00
README.md Name changes to Applied name. 2017-09-05 13:53:05 +10:00
Setup.hs Ugh, ReaderT lesson added. 2017-08-15 16:42:24 +10:00
stack.yaml Add stack.yaml files for all directories. 2018-01-10 10:33:56 +10:00
test.json Rebuilt Conf File Read Handling 2017-09-12 11:21:27 +10:00

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.