haskell-servant / servant-elm

Automatically derive Elm functions to query servant webservices
BSD 3-Clause "New" or "Revised" License
164 stars 48 forks source link

apply elmTypeAlterations in ops in Generate.mkRequest #64

Closed 1inguini closed 1 year ago

1inguini commented 2 years ago

Even if you customize elmTypeAlteration of ElmOptions, generateElmForAPIWith never notices about the change and thus the request part of generated elm code tries to call jsonDecFoo, where Foo is the datatype altered, which is never defined. This pull request fixes it.

k-bx commented 2 years ago

Please see https://github.com/haskell-servant/servant-elm/issues/66 if interested