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

Export StandaloneLambdaResponseBody type and constructors

Open tysonzero opened this issue 2 years ago • 5 comments

Closes #108

tysonzero avatar Oct 28 '21 04:10 tysonzero

Hey, I'm not sure whether this should be done. Does the newer way of setting up lambdas not work for your usecase? It's simpler now, you don't need to construct the StandaloneLambdaResponse.

I'll come up with a more detailed response next week, perhaps even improve the docs.

dnikolovv avatar Oct 28 '21 08:10 dnikolovv

I thought it was needed for returning the appropriate type, so I pointed him to it, my bad! Looking forward for your response @dnikolovv

NickSeagull avatar Oct 28 '21 08:10 NickSeagull

Is this helpful?

https://theam.github.io/aws-lambda-haskell-runtime/02-adding-a-handler.html

This + the next section is how you define and then register a handler.

dnikolovv avatar Oct 28 '21 18:10 dnikolovv

In that case is LambdaResult just deprecated entirely? Given that only two of its three constructors can actually be created.

I'm not totally against refactoring the code later, but right now I'm upgrading a lot of packages at once so just trying to put in the least effort possible for each one.

tysonzero avatar Oct 28 '21 20:10 tysonzero

Yes, it's now deprecated. I guess you can try pinning to the version that works for you?

dnikolovv avatar Nov 02 '21 12:11 dnikolovv