aws-lambda-haskell-runtime
aws-lambda-haskell-runtime copied to clipboard
`StandaloneLambdaResponseBody` seems impossible to construct
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
.
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
toStandaloneLambdaResponse
isn't exported by any public modules anymore.
Woops! Let's keep the conversation going in #109