summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Pipeline.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/GHC/Driver/Pipeline.hs')
-rw-r--r--compiler/GHC/Driver/Pipeline.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/GHC/Driver/Pipeline.hs b/compiler/GHC/Driver/Pipeline.hs
index f8ad427dc2..54221c4847 100644
--- a/compiler/GHC/Driver/Pipeline.hs
+++ b/compiler/GHC/Driver/Pipeline.hs
@@ -59,7 +59,6 @@ import GHC.Platform.Ways
import GHC.Platform.ArchOS
import GHC.Parser.Header
-import GHC.Parser.Errors.Ppr
import GHC.SysTools
import GHC.Utils.TmpFs
@@ -1248,7 +1247,7 @@ runPhase (RealPhase (Hsc src_flavour)) input_fn
popts = initParserOpts dflags
eimps <- getImports popts imp_prelude buf input_fn (basename <.> suff)
case eimps of
- Left errs -> throwErrors (foldPsMessages mkParserErr errs)
+ Left errs -> throwErrors (GhcPsMessage <$> errs)
Right (src_imps,imps,L _ mod_name) -> return
(Just buf, mod_name, imps, src_imps)