Typos in comments
[ghc.git] / compiler / main / Constants.hs
1 {-
2 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
3
4 \section[Constants]{Info about this compilation}
5 -}
6
7 module Constants (module Constants) where
8
9 import Config
10
11 hiVersion :: Integer
12 hiVersion = read (cProjectVersionInt ++ cProjectPatchLevel) :: Integer
13
14 -- All pretty arbitrary:
15
16 mAX_TUPLE_SIZE :: Int
17 mAX_TUPLE_SIZE = 62 -- Should really match the number
18 -- of decls in Data.Tuple
19
20 mAX_CTUPLE_SIZE :: Int -- Constraint tuples
21 mAX_CTUPLE_SIZE = 62 -- Should match the number of decls in GHC.Classes
22
23 mAX_SUM_SIZE :: Int
24 mAX_SUM_SIZE = 62
25
26 -- | Default maximum depth for both class instance search and type family
27 -- reduction. See also Trac #5395.
28 mAX_REDUCTION_DEPTH :: Int
29 mAX_REDUCTION_DEPTH = 200
30
31 -- | Default maximum constraint-solver iterations
32 -- Typically there should be very few
33 mAX_SOLVER_ITERATIONS :: Int
34 mAX_SOLVER_ITERATIONS = 4
35
36 wORD64_SIZE :: Int
37 wORD64_SIZE = 8
38
39 tARGET_MAX_CHAR :: Int
40 tARGET_MAX_CHAR = 0x10ffff