Skip to content

Commit cf81c96

Browse files
Update GHC-api's paths
1 parent 0dd9304 commit cf81c96

File tree

11 files changed

+30
-30
lines changed

11 files changed

+30
-30
lines changed

src/TypeLevel/Rewrite.hs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import Data.Foldable
88
import Data.Traversable
99

1010
-- GHC API
11-
import Coercion (Role(Representational), mkUnivCo)
12-
import Constraint (CtEvidence(ctev_loc), Ct, ctEvExpr, ctLoc, mkNonCanonical)
13-
import GhcPlugins (PredType, SDoc, eqType, fsep, ppr)
14-
import Plugins (Plugin(pluginRecompile, tcPlugin), CommandLineOption, defaultPlugin, purePlugin)
15-
import TcEvidence (EvExpr, EvTerm, evCast)
16-
import TcPluginM (newWanted)
17-
import TcRnTypes
18-
import TyCoRep (UnivCoProvenance(PluginProv))
19-
import TyCon (synTyConDefn_maybe)
11+
import GHC.Core.Coercion (Role(Representational), mkUnivCo)
12+
import GHC.Tc.Types.Constraint (CtEvidence(ctev_loc), Ct, ctEvExpr, ctLoc, mkNonCanonical)
13+
import GHC.Plugins (PredType, SDoc, eqType, fsep, ppr)
14+
import GHC.Plugins (Plugin(pluginRecompile, tcPlugin), CommandLineOption, defaultPlugin, purePlugin)
15+
import GHC.Tc.Types.Evidence (EvExpr, EvTerm, evCast)
16+
import GHC.Tc.Plugin (newWanted)
17+
import GHC.Core.TyCo.Rep (UnivCoProvenance(PluginProv))
18+
import GHC.Plugins (synTyConDefn_maybe)
19+
import GHC.Tc.Types (TcPluginResult(..), TcPluginM, ErrCtxt, pushErrCtxtSameOrigin, TcPlugin(..))
2020

2121
import TypeLevel.Rewrite.Internal.ApplyRules
2222
import TypeLevel.Rewrite.Internal.DecomposedConstraint

src/TypeLevel/Rewrite/Internal/ApplyRules.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import Data.Traversable
1313
import qualified Data.Map as Map
1414

1515
-- GHC API
16-
import Type (TyVar)
16+
import GHC.Plugins (TyVar)
1717

1818
-- term-rewriting API
1919
import Data.Rewriting.Rule (Rule(..))

src/TypeLevel/Rewrite/Internal/DecomposedConstraint.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Control.Applicative
55

66
-- GHC API
77
import GHC (Class, Type)
8-
import Constraint (Ct, ctEvPred, ctEvidence)
9-
import Predicate (EqRel(NomEq), Pred(ClassPred, EqPred), classifyPredType, mkClassPred, mkPrimEqPred)
8+
import GHC.Tc.Types.Constraint (Ct, ctEvPred, ctEvidence)
9+
import GHC.Core.Predicate (EqRel(NomEq), Pred(ClassPred, EqPred), classifyPredType, mkClassPred, mkPrimEqPred)
1010

1111

1212
data DecomposedConstraint a

src/TypeLevel/Rewrite/Internal/Lookup.hs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import Control.Arrow ((***), first)
55
import Data.Tuple (swap)
66

77
-- GHC API
8-
import Finder (cannotFindModule)
8+
import GHC.Driver.Finder (cannotFindModule)
99
import GHC (DataCon, TyCon, dataConTyCon)
10-
import Module (Module, ModuleName, mkModuleName)
11-
import OccName (mkDataOcc, mkTcOcc)
12-
import Panic (panicDoc)
13-
import TcPluginM
10+
import GHC (Module, ModuleName, mkModuleName)
11+
import GHC.Plugins (mkDataOcc, mkTcOcc)
12+
import GHC.Utils.Panic (panicDoc)
13+
import GHC.Tc.Plugin
1414
( FindResult(Found), TcPluginM, findImportedModule, lookupOrig, tcLookupDataCon, tcLookupTyCon
1515
, unsafeTcPluginTcM
1616
)
17-
import TcSMonad (getDynFlags)
17+
import GHC.Tc.Solver.Monad (getDynFlags)
1818

1919

2020
lookupModule

src/TypeLevel/Rewrite/Internal/PrettyPrint.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module TypeLevel.Rewrite.Internal.PrettyPrint where
44
import Data.List (intercalate)
55

66
-- GHC API
7-
import Outputable (ppr, showSDocUnsafe)
8-
import TyCon (TyCon)
9-
import Type (TyVar, Type)
7+
import GHC.Utils.Outputable (ppr, showSDocUnsafe)
8+
import GHC.Plugins (TyCon)
9+
import GHC.Plugins (TyVar, Type)
1010

1111
-- term-rewriting API
1212
import Data.Rewriting.Rule (Rule(..))

src/TypeLevel/Rewrite/Internal/TypeEq.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module TypeLevel.Rewrite.Internal.TypeEq where
22

33
import Data.Function
44

5-
import GhcPlugins (Type, eqType)
5+
import GHC.Plugins (Type, eqType)
66

77

88
-- | A newtype around 'Type' which has an 'Eq' instance.

src/TypeLevel/Rewrite/Internal/TypeNode.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
module TypeLevel.Rewrite.Internal.TypeNode where
33

44
-- GHC API
5-
import TyCon (TyCon)
6-
import Type (Type, isNumLitTy, isStrLitTy, mkTyConApp, splitTyConApp_maybe)
5+
import GHC (TyCon)
6+
import GHC.Plugins (Type, isNumLitTy, isStrLitTy, mkTyConApp, splitTyConApp_maybe)
77

88
import TypeLevel.Rewrite.Internal.TypeEq
99

src/TypeLevel/Rewrite/Internal/TypeRule.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
module TypeLevel.Rewrite.Internal.TypeRule where
44

55
-- GHC API
6-
import Name (getOccString)
7-
import Predicate (mkPrimEqPred)
8-
import Type (TyVar, Type, mkTyVarTy)
6+
import GHC.Plugins (getOccString)
7+
import GHC.Core.Predicate (mkPrimEqPred)
8+
import GHC.Plugins (TyVar, Type, mkTyVarTy)
99

1010
-- term-rewriting API
1111
import Data.Rewriting.Rule (Rule(..))

src/TypeLevel/Rewrite/Internal/TypeTemplate.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module TypeLevel.Rewrite.Internal.TypeTemplate where
33

44
-- GHC API
5-
import Type (TyVar, Type, getTyVar_maybe)
5+
import GHC.Plugins (TyVar, Type, getTyVar_maybe)
66

77
-- term-rewriting API
88
import Data.Rewriting.Term (Term(Fun, Var))

src/TypeLevel/Rewrite/Internal/TypeTerm.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
module TypeLevel.Rewrite.Internal.TypeTerm where
33

44
-- GHC API
5-
import Type (Type, mkTyConApp)
5+
import GHC.Plugins (Type, mkTyConApp)
66

77
-- term-rewriting API
88
import Data.Rewriting.Term (Term(Fun, Var))

0 commit comments

Comments
 (0)