summaryrefslogtreecommitdiff
path: root/testsuite/tests/tcplugins/Common.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/tcplugins/Common.hs')
-rw-r--r--testsuite/tests/tcplugins/Common.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/tests/tcplugins/Common.hs b/testsuite/tests/tcplugins/Common.hs
index e3ec1338a5..3ccc9a4a1b 100644
--- a/testsuite/tests/tcplugins/Common.hs
+++ b/testsuite/tests/tcplugins/Common.hs
@@ -40,6 +40,7 @@ import GHC.Types.Name.Occurrence
( mkClsOcc, mkDataOcc, mkTcOcc )
import GHC.Types.Unique.FM
( UniqFM, emptyUFM )
+import GHC.Types.PkgQual
import GHC.Unit.Finder
( FindResult(..) )
import GHC.Unit.Module
@@ -70,7 +71,7 @@ data PluginDefs =
definitionsModule :: TcPluginM Module
definitionsModule = do
- findResult <- findImportedModule ( mkModuleName "Definitions" ) Nothing
+ findResult <- findImportedModule ( mkModuleName "Definitions" ) NoPkgQual
case findResult of
Found _ res -> pure res
FoundMultiple _ -> error $ "TcPlugin test: found multiple modules named 'Definitions'."