Skip to content

Commit

Permalink
Add index entry for GHC-94803
Browse files Browse the repository at this point in the history
  • Loading branch information
jllang committed Jun 9, 2024
1 parent f7c49e5 commit f5875a9
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions message-index/messages/GHC-94803/example1/after/Example.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Example where

a = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(0,0))
4 changes: 4 additions & 0 deletions message-index/messages/GHC-94803/example1/before/Example.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Example where

a = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
8 changes: 8 additions & 0 deletions message-index/messages/GHC-94803/example1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 65-element tuples
order: 1
severity: error
introduced: 9.8.1
---

Having too many elements in a tuple causes a compilation error. A workaround is to collect the extra elements in a nested tuple.
25 changes: 25 additions & 0 deletions message-index/messages/GHC-94803/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Tuple too large
summary: Tuples can only have up to 64 elements
severity: error
introduced: 9.8.1
---

A value containing more than 64 elements needs to be represented in a different way.

## Example error text
```
error: [GHC-94803]
• A 65-tuple is too large for GHC
(max size is 64)
Workaround: use nested tuples or define a data type
• In the expression:
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
In an equation for ‘a’:
a = (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0)
```

0 comments on commit f5875a9

Please sign in to comment.