Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom handlers support? #112

Open
stevemao opened this issue Mar 13, 2022 · 1 comment
Open

add custom handlers support? #112

stevemao opened this issue Mar 13, 2022 · 1 comment

Comments

@stevemao
Copy link
Contributor

APIGatewayHandler and ALBHandler are very handy handlers. I'm wondering if we could write more custom handlers using the low level StandaloneLambdaHandler?

Had a quick look at the source code it seems impossible right now. These three handlers are constructers of Handler type. Perhaps Handler should be a typeclass.

@NickSeagull
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants