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

StandaloneLambdaResponseBody seems impossible to construct #108

Open
tysonzero opened this issue Oct 26, 2021 · 3 comments · May be fixed by #109
Open

StandaloneLambdaResponseBody seems impossible to construct #108

tysonzero opened this issue Oct 26, 2021 · 3 comments · May be fixed by #109

Comments

@tysonzero
Copy link

I'm on an older version of this library using runLambda, StandaloneLambdaResult and toStandaloneLambdaResponse.

Now that I'm upgrading to a newer library version, I have no clue how to keep my code working. StandaloneLambdaResponseBody seems impossible to construct, and I need it for the StandaloneLambdaResult constructor of LambdaResult.

@NickSeagull
Copy link
Member

Hey! Thanks for reporting :)

Have you tried doing a toStandaloneLambdaResponse <yourResult>? There is a type class ToStandaloneLambdaResponseBody that will make ByteStrings/Texts or any type that implements ToJSON returnable from your handler

@tysonzero
Copy link
Author

toStandaloneLambdaResponse isn't exported by any public modules anymore.

@NickSeagull
Copy link
Member

Woops! Let's keep the conversation going in #109

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

Successfully merging a pull request may close this issue.

2 participants