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

Extend Tuple support to Elm and Scala #24

Open
davegurnell opened this issue Jul 31, 2019 · 2 comments
Open

Extend Tuple support to Elm and Scala #24

davegurnell opened this issue Jul 31, 2019 · 2 comments

Comments

@davegurnell
Copy link
Owner

davegurnell commented Jul 31, 2019

Version 0.18 added TsType.Tuple and FlowType.Tuple to encode tuple Typescript and Flow tuple types:

export type SpreadsheetCell = [string, number];

We can currently create these types using the DSL:

decl("SpreadsheetCell")(tuple(Str, Intr))

However, we can't yet map Scala tuples onto them using decl[T]. If we can add tuple support to Elm's model, we can write some scala.TupleX encoders using shapeless of sbt-boilerplate.

@pvillega
Copy link
Collaborator

pvillega commented Aug 2, 2019 via email

@davegurnell
Copy link
Owner Author

davegurnell commented Aug 3, 2019 via email

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

No branches or pull requests

2 participants