summaryrefslogtreecommitdiff
path: root/testsuite/tests/tcplugins/RewritePerfPlugin.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/tcplugins/RewritePerfPlugin.hs')
-rw-r--r--testsuite/tests/tcplugins/RewritePerfPlugin.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/tcplugins/RewritePerfPlugin.hs b/testsuite/tests/tcplugins/RewritePerfPlugin.hs
index 8659375c5d..036d89129c 100644
--- a/testsuite/tests/tcplugins/RewritePerfPlugin.hs
+++ b/testsuite/tests/tcplugins/RewritePerfPlugin.hs
@@ -35,6 +35,7 @@ import GHC.Types.Name.Occurrence
( mkTcOcc )
import GHC.Types.Unique.FM
( UniqFM, listToUFM )
+import GHC.Types.PkgQual
import GHC.Unit.Finder
( FindResult(..) )
import GHC.Unit.Module
@@ -54,7 +55,7 @@ type PluginDefs = [ TyCon ]
definitionsModule :: TcPluginM Module
definitionsModule = do
- findResult <- findImportedModule ( mkModuleName "RewritePerfDefs" ) Nothing
+ findResult <- findImportedModule ( mkModuleName "RewritePerfDefs" ) NoPkgQual
case findResult of
Found _ res -> pure res
FoundMultiple _ -> error $ "RewritePerfPlugin: found multiple modules named 'RewritePerfDefs'."