X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fmain%2FHscTypes.lhs;h=c9ea1f7c4fe3f62ef1498db3a4c59f784ad17f55;hp=bba10e489b97444fb3105e9c5dc7dff91e480e47;hb=25628e2771424cae1b3366322e8ce6f8a85440f9;hpb=f0ffb7da8edb184558ab6fb5e0a9899f89572333 diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs index bba10e4..c9ea1f7 100644 --- a/compiler/main/HscTypes.lhs +++ b/compiler/main/HscTypes.lhs @@ -102,6 +102,7 @@ import Packages hiding ( Version(..) ) import DynFlags ( DynFlags(..), isOneShot, HscTarget (..) ) import DriverPhases ( HscSource(..), isHsBoot, hscSourceString, Phase ) import BasicTypes ( IPName, Fixity, defaultFixity, DeprecTxt ) +import OptimizationFuel ( OptFuelState ) import IfaceSyn import FiniteMap ( FiniteMap ) import CoreSyn ( CoreRule ) @@ -200,6 +201,11 @@ data HscEnv -- The finder's cache. This caches the location of modules, -- so we don't have to search the filesystem multiple times. + hsc_OptFuel :: OptFuelState, + -- Settings to control the use of optimization fuel: + -- by limiting the number of transformations, + -- we can use binary search to help find compiler bugs. + hsc_global_rdr_env :: GlobalRdrEnv, hsc_global_type_env :: TypeEnv }