summaryrefslogtreecommitdiff
path: root/compiler/main/Constants.lhs
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-09-17 18:50:46 +0100
committerIan Lynagh <ian@well-typed.com>2012-09-17 18:59:19 +0100
commite76fa6999edab45baccc572bff5b0abe7abe3405 (patch)
tree0d6e8276a3d9504fa786e3362c665e83f50a47fa /compiler/main/Constants.lhs
parent998a633764db8cea2b650b59be3d2ac6d300465e (diff)
downloadhaskell-e76fa6999edab45baccc572bff5b0abe7abe3405.tar.gz
Merge the remainder of HaskellConstants into Constants
Diffstat (limited to 'compiler/main/Constants.lhs')
-rw-r--r--compiler/main/Constants.lhs27
1 files changed, 16 insertions, 11 deletions
diff --git a/compiler/main/Constants.lhs b/compiler/main/Constants.lhs
index 0cecb82f1a..497bae500e 100644
--- a/compiler/main/Constants.lhs
+++ b/compiler/main/Constants.lhs
@@ -4,21 +4,26 @@
\section[Constants]{Info about this compilation}
\begin{code}
-{-# OPTIONS -fno-warn-tabs #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and
--- detab the module (please do the detabbing in a separate patch). See
--- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
--- for details
-
module Constants (module Constants) where
import Config
-#include "ghc_boot_platform.h"
-
-#include "../includes/HaskellConstants.hs"
-
hiVersion :: Integer
hiVersion = read (cProjectVersionInt ++ cProjectPatchLevel) :: Integer
+
+-- All pretty arbitrary:
+
+mAX_TUPLE_SIZE :: Int
+mAX_TUPLE_SIZE = 62 -- Should really match the number
+ -- of decls in Data.Tuple
+
+mAX_CONTEXT_REDUCTION_DEPTH :: Int
+mAX_CONTEXT_REDUCTION_DEPTH = 200
+ -- Increase to 200; see Trac #5395
+
+wORD64_SIZE :: Int
+wORD64_SIZE = 8
+
+tARGET_MAX_CHAR :: Int
+tARGET_MAX_CHAR = 0x10ffff
\end{code}