summaryrefslogtreecommitdiff
path: root/utils/check-exact/Parsers.hs
diff options
context:
space:
mode:
Diffstat (limited to 'utils/check-exact/Parsers.hs')
-rw-r--r--utils/check-exact/Parsers.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/check-exact/Parsers.hs b/utils/check-exact/Parsers.hs
index a42bba42cd..cff37bf309 100644
--- a/utils/check-exact/Parsers.hs
+++ b/utils/check-exact/Parsers.hs
@@ -76,7 +76,7 @@ parseWith :: GHC.DynFlags
parseWith dflags fileName parser s =
case runParser parser dflags fileName s of
GHC.PFailed pst
- -> Left (GHC.GhcPsMessage <$> GHC.getErrorMessages pst)
+ -> Left (GHC.GhcPsMessage <$> GHC.getPsErrorMessages pst)
GHC.POk _ pmod
-> Right pmod
@@ -90,7 +90,7 @@ parseWithECP :: (GHC.DisambECP w)
parseWithECP dflags fileName parser s =
case runParser (parser >>= \p -> GHC.runPV $ GHC.unECP p) dflags fileName s of
GHC.PFailed pst
- -> Left (GHC.GhcPsMessage <$> GHC.getErrorMessages pst)
+ -> Left (GHC.GhcPsMessage <$> GHC.getPsErrorMessages pst)
GHC.POk _ pmod
-> Right pmod
@@ -185,7 +185,7 @@ parseModuleFromStringInternal dflags fileName str =
let (str1, lp) = stripLinePragmas str
res = case runParser GHC.parseModule dflags fileName str1 of
GHC.PFailed pst
- -> Left (GHC.GhcPsMessage <$> GHC.getErrorMessages pst)
+ -> Left (GHC.GhcPsMessage <$> GHC.getPsErrorMessages pst)
GHC.POk _ pmod
-> Right (lp, dflags, pmod)
in postParseTransform res
@@ -258,7 +258,7 @@ parseModuleEpAnnsWithCppInternal cppOptions dflags file = do
return $
case parseFile dflags' file fileContents of
GHC.PFailed pst
- -> Left (GHC.GhcPsMessage <$> GHC.getErrorMessages pst)
+ -> Left (GHC.GhcPsMessage <$> GHC.getPsErrorMessages pst)
GHC.POk _ pmod
-> Right $ (injectedComments, dflags', fixModuleTrailingComments pmod)