Make the maximum tuple size accesible
In relation with the implementation of a Haskell-embedded DSL, I'm using Template Haskell to automatically generate instances for tuples.
I'd like to use tuples as big as GHC allows me to. However, the upper size limit (62 as of GHC 6.8.2) is not accessible by the end user. That forces me to hardcode the size, which, as you can imagine, is not a good practice since the value can change in future versions of the compiler.
Thus, I propose to include a constant (e.g. maxTupleSize
) somewhere under GHC.* (maybe GHC.Exts) for that purpose.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.2 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |