purescript-httpurple/docs/Examples/CustomStack
Drew Olson ac43b0d125 Update response functions to return MonadAff m => m Response (#150)
* Update Response functions to return MonadAffs

* Install psc-package for travis build
2019-09-29 20:57:15 -07:00
..
Main.purs Update response functions to return MonadAff m => m Response (#150) 2019-09-29 20:57:15 -07:00
Readme.md Update response functions to return MonadAff m => m Response (#150) 2019-09-29 20:57:15 -07:00

CustomStack Example

This example demonstrates using middleware to introduce a custom monad stack to your application. Here, we run our router within a ReaderT to provide a globally-available environment during routing.

To run the example server, run:

make example EXAMPLE=CustomStack