Skip to content

Add lambda client#1

Open
epicallan wants to merge 1 commit intomasterfrom
add/lambda-client
Open

Add lambda client#1
epicallan wants to merge 1 commit intomasterfrom
add/lambda-client

Conversation

@epicallan
Copy link
Contributor

No description provided.

@epicallan epicallan force-pushed the add/lambda-client branch 6 times, most recently from 2d4cb14 to c3a336b Compare January 18, 2021 23:44

runtime
:: ToJSON result
=> (Either ClientError LambdaResponse -> IO (Either Text result))
Copy link
Contributor Author

@epicallan epicallan Jan 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember you mentioned that you would prefer we integrated with RIO; but I failed to find a compelling reason to use it within the runtime function where the env would potentially be the lambdaContext. However, I am happy to reconsider.

Furthermore, adding lambdaContext as an env value requires what I currently consider internal library implementation detail and its generation is an effect that can lead to lambda client errors and there is no way of retrieving it without obtaining lambda-event data since it has both static and dynamic data retrieved from lambda-even HTTP headers.

@epicallan epicallan force-pushed the add/lambda-client branch 5 times, most recently from a57b055 to cfcd02e Compare January 21, 2021 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant