|
| 1 | +--- |
| 2 | +title: Tuple too large |
| 3 | +summary: Tuples can only have up to 64 elements |
| 4 | +severity: error |
| 5 | +introduced: 9.8.1 |
| 6 | +--- |
| 7 | + |
| 8 | +A value containing more than 64 elements needs to be represented in a different way. |
| 9 | + |
| 10 | +## Example error text |
| 11 | +``` |
| 12 | +error: [GHC-94803] |
| 13 | + • A 65-tuple is too large for GHC |
| 14 | + (max size is 64) |
| 15 | + Workaround: use nested tuples or define a data type |
| 16 | + • In the expression: |
| 17 | + (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 18 | + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 19 | + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) |
| 20 | + In an equation for ‘a’: |
| 21 | + a = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 22 | + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 23 | + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 24 | + 0) |
| 25 | +``` |
0 commit comments