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

Add quadruplet to primitive elm types #142

Closed
wants to merge 2 commits into from

Conversation

alexterz
Copy link

No description provided.

@@ -110,6 +110,7 @@ elmPrimDoc = \case
ElmResult l r -> "Result" <+> elmTypeParenDoc l <+> elmTypeParenDoc r
ElmPair a b -> lparen <> elmTypeRefDoc a <> comma <+> elmTypeRefDoc b <> rparen
ElmTriple a b c -> lparen <> elmTypeRefDoc a <> comma <+> elmTypeRefDoc b <> comma <+> elmTypeRefDoc c <> rparen
ElmQuadruplet a b c d -> lparen <> elmTypeRefDoc a <> comma <+> elmTypeRefDoc b <> comma <+> elmTypeRefDoc c <> comma <+> elmTypeRefDoc d <> rparen
Copy link
Contributor

@jhrcek jhrcek Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elm does not support tuples beyond triples.
So the elm code generated by this would not compile.
Let's not encourage users in doing something that's elm doesn't want them to do.

@alexterz alexterz closed this Nov 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants