seek-oss / serverless-haskell

Deploying Haskell applications to AWS Lambda with Serverless
MIT License
215 stars 22 forks source link

Fix format of SNS events #120

Closed axman6 closed 4 years ago

axman6 commented 4 years ago

Looks like some of the fields coming from SNS don't match the names used in the Haskell code. Also MessageAttributes appears to be optional, so it is now a Maybe - this is also why omitNothingFields has also been added to the FromJSON instance. This is untested, I can try it and check it works on Monday.