Open hadronized opened 7 years ago
The functions generated by servant-elm
take parameters in the following order:
Since we use servant-foreign
's listFromAPI
, we don't know the order in which they were defined in the original type.
Perhaps this would be a valuable addition to servant-foreign
- I'll put something together.
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).