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

generating elm for polymorphic data type and type synonym is broken #58

Open
nlv opened this issue Aug 28, 2019 · 0 comments
Open

generating elm for polymorphic data type and type synonym is broken #58

nlv opened this issue Aug 28, 2019 · 0 comments

Comments

@nlv
Copy link

nlv commented Aug 28, 2019

In my project I use opaleye lib.
I have to define polymorphic data type that corresponds to db table and several type synonyms with concrete fixed type parameters. For example:

data People' a b c = People { name :: a, lastname :: b, birthday :: s}
type People = People' Text Text Int

And in API type I use type synonym:

type PeopleApi =
"people" :> Capture "code" Int :> Get '[JSON] People

Generating elm api client is broken for this case.
Full example you can see here: https://github.com/nlv/servant-elm-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant