@@ -8,6 +8,7 @@ import Data.Foldable
88import Data.Traversable
99
1010-- GHC API
11+ #if MIN_VERSION_ghc(9,0,0)
1112import GHC.Core.Coercion (Role (Representational ), mkUnivCo )
1213import GHC.Tc.Types.Constraint (CtEvidence (ctev_loc ), Ct , ctEvExpr , ctLoc , mkNonCanonical )
1314import GHC.Plugins (PredType , SDoc , eqType , fsep , ppr )
@@ -17,6 +18,17 @@ import GHC.Tc.Plugin (newWanted)
1718import GHC.Core.TyCo.Rep (UnivCoProvenance (PluginProv ))
1819import GHC.Plugins (synTyConDefn_maybe )
1920import GHC.Tc.Types (TcPluginResult (.. ), TcPluginM , ErrCtxt , pushErrCtxtSameOrigin , TcPlugin (.. ))
21+ #else
22+ import Coercion (Role (Representational ), mkUnivCo )
23+ import Constraint (CtEvidence (ctev_loc ), Ct , ctEvExpr , ctLoc , mkNonCanonical )
24+ import GhcPlugins (PredType , SDoc , eqType , fsep , ppr )
25+ import Plugins (Plugin (pluginRecompile , tcPlugin ), CommandLineOption , defaultPlugin , purePlugin )
26+ import TcEvidence (EvExpr , EvTerm , evCast )
27+ import TcPluginM (newWanted )
28+ import TcRnTypes
29+ import TyCoRep (UnivCoProvenance (PluginProv ))
30+ import TyCon (synTyConDefn_maybe )
31+ #endif
2032
2133import TypeLevel.Rewrite.Internal.ApplyRules
2234import TypeLevel.Rewrite.Internal.DecomposedConstraint
0 commit comments