I\'m using the servant
library for my JSON API. I need some help to get a ServerT MyAPI (ReaderT a IO)
monad stack working.
Here\'s an example
You were almost there, test should be:
test :: ReaderT Int IO String
test = giveMeAMessage
As for your other questions, I don't have time to answer just now but us servant developers should probably make it easier or better documented.
Could you please read through the source for whichever part confuses you, and then ask specific questions?