Closed legrostdg closed 7 years ago
I am afraid, I don't fully understand the issue. Could you elaborate a bit?
if you have "/auto-update GET" in your API, servant-purescript
used to generate "getAutoupdate", and now generates "getAuto-update", which is not valid. Note that this function name is valid in other languages, that's why the hyphen escaping/removal has been moved to servant-js
.
We should probably depend on "servant-js" instead of "servant-foreign", or copy the hyphen-escaping/removal logic in servant-purescript
.
I see. Thank you!
servant-foreign 0.10
avoids JavaScript specific mangling to the names. So, the code generated byservant-purescript
will fail for APIs containing strings with hiphens.