Open stevemao opened 2 years ago
Thanks for reporting this!
Now that you mention it, maybe it could be done through ReaderT handler (IO a)
?
I think it could be positive to use it in a concrete way like that, instead of relying on a type class which could result in more confusing errors for newcomers
APIGatewayHandler
andALBHandler
are very handy handlers. I'm wondering if we could write more custom handlers using the low levelStandaloneLambdaHandler
?Had a quick look at the source code it seems impossible right now. These three handlers are constructers of
Handler
type. PerhapsHandler
should be a typeclass.