Skip to content

Bugfix: Change queryStringParameters to HashMap #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

andys8
Copy link
Contributor

@andys8 andys8 commented Jul 21, 2020

Issue

There is currently an issue with aws-lambda-haskell-runtime where query parameters are not working as expected. It leads to an Aeson crash.

theam/aws-lambda-haskell-runtime#85

Therefore I propose this fix to aws-lambda-haskell-runtime.

theam/aws-lambda-haskell-runtime#87

This library is currently using aws-lambda-haskell-runtime in version 3.0.0. Because the fix is breaking the type signature, this PR is an update to adapt it.

It currently uses a fork of mine where the issue is fixed and the change is necessary. Once the upstream library is fixed and published, this PR can be adapted and merged.

Thanks for the wai library by the way 😌

Query params type fix: HashMap. This change currently uses a fork, but
will be updated, once theam/aws-lambda-haskell-runtime was updated and
released.

See <theam/aws-lambda-haskell-runtime#85>
@dnikolovv
Copy link
Contributor

Thanks Andy! I'll merge that and get it up on Hackage together with the print statement removal.

@dnikolovv dnikolovv marked this pull request as ready for review July 22, 2020 06:20
@dnikolovv dnikolovv merged commit d35e2fc into eir-forsakring:master Jul 22, 2020
@andys8
Copy link
Contributor Author

andys8 commented Jul 22, 2020

Thank you. But I think it also needs to have aws-lambda-haskell-runtime fixed and use it as a dependency. Let's see when theam/aws-lambda-haskell-runtime#87 is merged.

@dnikolovv
Copy link
Contributor

@andys8 Yeah, definitely. Let's wait a bit and see. It's better to have the fixed fork up on Hackage for now.

andys8 added a commit to andys8/aws-lambda-haskell-runtime-wai that referenced this pull request Aug 7, 2020
Fork not necessary anymore because the changes were merged upstream.

Relates to eir-forsakring#4
Relates to <theam/aws-lambda-haskell-runtime#87>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants