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

tuple limit: tuple exceeding 9 members results in elm-make error #781

Closed
kkruups opened this Issue Dec 13, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@kkruups

kkruups commented Dec 13, 2016

Tuples exceeding 9 members result in following errors being indicated:

elm-make: Could not find `_Tuple10` when solving type constraints.
elm-make: thread blocked indefinitely in an MVar operation

Code to reproduce this issue:

import Html exposing (text)

myTup = (1,2,3,4,5,6,7,8,9,10)

main =
  text <| toString myTup

It appears like tuples are special, and constrain the number of members.
They do not allow same number of members as Lists, since I can create a list with the same
number of members without issue.

myList = [1,2,3,4,5,6,7,8,9,10]

Why the constraint?

Is this WAD?

Additional Info:

I wanted to do the following with tuples, which works with lists but not tuples:

import Html exposing (text)

-- timesIt = \y -> [let baizo x =  x * y  in ( baizo 1 , baizo 2 , baizo 3, baizo 4, baizo 5, baizo 6, baizo 7, baizo 8, baizo 9, baizo 10 )]

timesIt = \y -> [let baizo x =  x * y  in [baizo 1 , baizo 2 , baizo 3, baizo 4, baizo 5, baizo 6, baizo 7, baizo 8, baizo 9, baizo 10 ]]

myList = [1,2,3,4,5,6,7,8,9,10]

main =
  text <| toString <| timesIt 3

What OS and browser are you using? What versions?

Chrome Version 54.0.2840.99 m
Win 7 SP1

What version of Elm are you using?

Elm Online Editor (elmO) (v.0.18 online)
Elm-Repl: v.0.17
@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Dec 13, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Dec 13, 2016

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@rtfeldman

This comment has been minimized.

Show comment
Hide comment
@rtfeldman

rtfeldman Dec 15, 2016

Member

Thanks for reporting this @kkruups!

This repo is for Elm's core package, whereas what you've discovered is a compiler bug.

Would you mind re-opening this issue on https://github.com/elm-lang/elm-compiler/issues ?

Member

rtfeldman commented Dec 15, 2016

Thanks for reporting this @kkruups!

This repo is for Elm's core package, whereas what you've discovered is a compiler bug.

Would you mind re-opening this issue on https://github.com/elm-lang/elm-compiler/issues ?

@kkruups

This comment has been minimized.

Show comment
Hide comment
@kkruups

kkruups commented Dec 27, 2016

@rtfeldman done! :)

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