We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an endpoint that mixes both ReqBody and QueryParams:
ReqBody
QueryParams
filterOccurrences :: [Tag] -> [QueryFilter] -> …
However, the generated Elm reverses the order:
postOccurrencesFiltered : List (QueryFilter) -> List (String) -> Http.Request …
It’s clearly not a big deal, but it’s confusing and error prone (I can’t imagine the madness if both the arguments resolve to the exact same type).
The text was updated successfully, but these errors were encountered:
The functions generated by servant-elm take parameters in the following order:
servant-elm
Since we use servant-foreign's listFromAPI, we don't know the order in which they were defined in the original type.
servant-foreign
listFromAPI
Perhaps this would be a valuable addition to servant-foreign - I'll put something together.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I have an endpoint that mixes both
ReqBody
andQueryParams
:However, the generated Elm reverses the order:
It’s clearly not a big deal, but it’s confusing and error prone (I can’t imagine the madness if both the arguments resolve to the exact same type).
The text was updated successfully, but these errors were encountered: