1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-22 19:34:33 +03:00
applied-fp-course/level06
2018-01-30 18:06:42 +11:00
..
bin Ugh, ReaderT lesson added. 2017-08-15 16:42:24 +10:00
src/FirstApp Move Topic/CommentText into their own modules to hide constructors 2018-01-30 18:06:42 +11: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 Move Topic/CommentText into their own modules to hide constructors 2018-01-30 18:06:42 +11: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 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.