diff options
author | Reid Barton <rwbarton@gmail.com> | 2017-01-06 11:23:37 -0500 |
---|---|---|
committer | Reid Barton <rwbarton@gmail.com> | 2017-01-06 11:23:37 -0500 |
commit | 83003dea51dabee93a27afad95d5aacf57dbd351 (patch) | |
tree | 159814ac5cb102d17e549cff29dcd50e06170d04 /compiler/main/Constants.hs | |
parent | df723689c415573fa6c7d83663758154fa7dc46f (diff) | |
download | haskell-wip/rwbarton-large-tuple.tar.gz |
WIP: Move large tuples to a new module GHC.LargeTuplewip/rwbarton-large-tuple
Goal is to avoid reading its interface file for programs that don't use
large tuples, so we can add instances for large tuples without affecting
compiler performance in the common case.
Diffstat (limited to 'compiler/main/Constants.hs')
-rw-r--r-- | compiler/main/Constants.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/main/Constants.hs b/compiler/main/Constants.hs index 3dafbac996..e734f1d425 100644 --- a/compiler/main/Constants.hs +++ b/compiler/main/Constants.hs @@ -17,6 +17,9 @@ mAX_TUPLE_SIZE :: Int mAX_TUPLE_SIZE = 62 -- Should really match the number -- of decls in Data.Tuple +sMALL_TUPLE_SIZE :: Int +sMALL_TUPLE_SIZE = 15 -- XXX Document these properly + mAX_CTUPLE_SIZE :: Int -- Constraint tuples mAX_CTUPLE_SIZE = 62 -- Should match the number of decls in GHC.Classes |