purescript-httpurple/docs/Examples/CustomStack
Thomas Honeyman 6ce52417f7
Migrate from purty to purs-tidy (#178)
* Replace purty with purs-tidy

* run purs-tidy
2021-11-06 12:37:31 -07:00
..
Main.purs Migrate from purty to purs-tidy (#178) 2021-11-06 12:37:31 -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