summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core/Rules/Config.hs
blob: 2ae1e35a6713749b99254c97109971eae92ad002 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module GHC.Core.Rules.Config where

import GHC.Prelude
import GHC.Platform

-- | Rule options
data RuleOpts = RuleOpts
   { roPlatform                :: !Platform -- ^ Target platform
   , roNumConstantFolding      :: !Bool     -- ^ Enable more advanced numeric constant folding
   , roExcessRationalPrecision :: !Bool     -- ^ Cut down precision of Rational values to that of Float/Double if disabled
   , roBignumRules             :: !Bool     -- ^ Enable rules for bignums
   }