summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/T7478/T7478.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/T7478/T7478.hs')
-rw-r--r--testsuite/tests/ghc-api/T7478/T7478.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/ghc-api/T7478/T7478.hs b/testsuite/tests/ghc-api/T7478/T7478.hs
index 15c3559f7d..dc6edb21a8 100644
--- a/testsuite/tests/ghc-api/T7478/T7478.hs
+++ b/testsuite/tests/ghc-api/T7478/T7478.hs
@@ -9,7 +9,7 @@ import GHC
import qualified Config as GHC
import qualified Outputable as GHC
import GhcMonad (liftIO)
-import Outputable (PprStyle, qualName, qualModule)
+import Outputable (PprStyle, queryQual)
compileInGhc :: [FilePath] -- ^ Targets
-> (String -> IO ()) -- ^ handler for each SevOutput message
@@ -42,7 +42,7 @@ compileInGhc targets handlerOutput = do
_ -> error "fileFromTarget: not a known target"
collectSrcError handlerOutput flags SevOutput _srcspan style msg
- = handlerOutput $ GHC.showSDocForUser flags (qualName style,qualModule style) msg
+ = handlerOutput $ GHC.showSDocForUser flags (queryQual style) msg
collectSrcError _ _ _ _ _ _
= return ()