summaryrefslogtreecommitdiff
path: root/compiler/GHC/Core
diff options
context:
space:
mode:
authorOleg Grenrus <oleg.grenrus@iki.fi>2023-05-13 12:50:25 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-05-15 14:50:43 -0400
commit86aae5702d09db2f50c42a3f43ef72df1e3a710b (patch)
treee0b660bcb474ecd036d5cacfccf78f9621021b70 /compiler/GHC/Core
parent2f571afe1c2aeb3f4dfca2012bc6b713144fd234 (diff)
downloadhaskell-86aae5702d09db2f50c42a3f43ef72df1e3a710b.tar.gz
Split DynFlags structure into own module
This will allow to make command line parsing to depend on diagnostic system (which depends on dynflags)
Diffstat (limited to 'compiler/GHC/Core')
-rw-r--r--compiler/GHC/Core/Opt/CallerCC.hs2
-rw-r--r--compiler/GHC/Core/Opt/Monad.hs2
-rw-r--r--compiler/GHC/Core/Rules.hs2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/GHC/Core/Opt/CallerCC.hs b/compiler/GHC/Core/Opt/CallerCC.hs
index 4218ebbac9..dcf4df10bf 100644
--- a/compiler/GHC/Core/Opt/CallerCC.hs
+++ b/compiler/GHC/Core/Opt/CallerCC.hs
@@ -26,7 +26,7 @@ import qualified Text.ParserCombinators.ReadP as P
import GHC.Prelude
import GHC.Utils.Outputable as Outputable
-import GHC.Driver.Session
+import GHC.Driver.DynFlags
import GHC.Types.CostCentre
import GHC.Types.CostCentre.State
import GHC.Types.Name hiding (varName)
diff --git a/compiler/GHC/Core/Opt/Monad.hs b/compiler/GHC/Core/Opt/Monad.hs
index d38f3e6c59..6199472897 100644
--- a/compiler/GHC/Core/Opt/Monad.hs
+++ b/compiler/GHC/Core/Opt/Monad.hs
@@ -40,7 +40,7 @@ module GHC.Core.Opt.Monad (
import GHC.Prelude hiding ( read )
-import GHC.Driver.Session
+import GHC.Driver.DynFlags
import GHC.Driver.Env
import GHC.Core.Rules ( RuleBase, RuleEnv, mkRuleEnv )
diff --git a/compiler/GHC/Core/Rules.hs b/compiler/GHC/Core/Rules.hs
index 67f47e9d9c..9e88ab1bd8 100644
--- a/compiler/GHC/Core/Rules.hs
+++ b/compiler/GHC/Core/Rules.hs
@@ -41,7 +41,7 @@ import GHC.Unit.Module.Env
import GHC.Unit.Module.ModGuts( ModGuts(..) )
import GHC.Unit.Module.Deps( Dependencies(..) )
-import GHC.Driver.Session( DynFlags )
+import GHC.Driver.DynFlags( DynFlags )
import GHC.Driver.Ppr( showSDoc )
import GHC.Core -- All of it