Skip to content
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

Fix ReqInput merging strategy in combinators #326

Merged
merged 6 commits into from
Oct 9, 2020

Conversation

StefanoMagrassi
Copy link
Contributor

This PR:

  • fixes the merging strategy of ReqInput for consecutive calls to the same combinator

Notes
The logic had to be "reversed" because of the contravariant nature of Reader and because the execution of combinators is from right to left (function composition).

This leads to a "weird" behavior for which the data provided when Req is run win over the ones set with the combinators.

@StefanoMagrassi StefanoMagrassi added this to the 3.1.x milestone Oct 9, 2020
@StefanoMagrassi StefanoMagrassi self-assigned this Oct 9, 2020
@StefanoMagrassi StefanoMagrassi merged commit 53aa959 into master Oct 9, 2020
@StefanoMagrassi StefanoMagrassi deleted the fix/req-input-merging-in-combinators branch October 9, 2020 14:51
Copy link

@lucarge lucarge left a comment

Choose a reason for hiding this comment

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

Looks perfect, thanks @StefanoMagrassi! 🙏

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.

None yet

2 participants