aws-lambda-haskell-runtime icon indicating copy to clipboard operation
aws-lambda-haskell-runtime copied to clipboard

`StandaloneLambdaResponseBody` seems impossible to construct

Open tysonzero opened this issue 3 years ago • 3 comments

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.

tysonzero avatar Oct 26 '21 22:10 tysonzero

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

NickSeagull avatar Oct 27 '21 07:10 NickSeagull

toStandaloneLambdaResponse isn't exported by any public modules anymore.

tysonzero avatar Oct 27 '21 07:10 tysonzero

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

NickSeagull avatar Oct 28 '21 08:10 NickSeagull