1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-29 16:55:12 +03:00
applied-fp-course/level06
2018-02-09 11:33:59 +10:00
..
bin Ugh, ReaderT lesson added. 2017-08-15 16:42:24 +10:00
src/FirstApp Minor adjustments. Fix some remaining capitalisation issues for runDB 2018-02-09 11:33:59 +10:00
tests Added some tests, renamed the throwLeft function, added some better wording for Level06 AppM 2018-01-27 15:04:36 +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 Widen optparse-applicative bounds 2018-02-07 09:49:47 +10:00
level06.nix Updates based on course run feedback. 2018-01-16 12:36:57 +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 Update to stackage LTS 10 (GHC 8.2.2) 2018-01-31 12:20:33 +11: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.