@@ -1076,7 +1076,7 @@ parseHeader dflags filename contents = do
10761076 let loc = mkRealSrcLoc (Util. mkFastString filename) 1 1
10771077 case unP Compat. parseHeader (initParserState (initParserOpts dflags) contents loc) of
10781078 PFailedWithErrorMessages msgs ->
1079- #if MIN_VERSION_ghc(9,6,1 )
1079+ #if MIN_VERSION_ghc(9,5,0 )
10801080 throwE $ diagFromErrMsgs sourceParser dflags $ msgs dflags
10811081#else
10821082 throwE $ diagFromSDocErrMsgs sourceParser dflags $ msgs dflags
@@ -1094,13 +1094,13 @@ parseHeader dflags filename contents = do
10941094 -- errors are those from which a parse tree just can't
10951095 -- be produced.
10961096 unless (null errs) $
1097- #if MIN_VERSION_ghc(9,6,1 )
1097+ #if MIN_VERSION_ghc(9,5,0 )
10981098 throwE $ diagFromErrMsgs sourceParser dflags errs
10991099#else
11001100 throwE $ diagFromSDocErrMsgs sourceParser dflags errs
11011101#endif
11021102
1103- #if MIN_VERSION_ghc(9,6,1 )
1103+ #if MIN_VERSION_ghc(9,5,0 )
11041104 let warnings = diagFromErrMsgs sourceParser dflags warns
11051105#else
11061106 let warnings = diagFromSDocErrMsgs sourceParser dflags warns
@@ -1122,7 +1122,7 @@ parseFileContents env customPreprocessor filename ms = do
11221122 contents = fromJust $ ms_hspp_buf ms
11231123 case unP Compat. parseModule (initParserState (initParserOpts dflags) contents loc) of
11241124 PFailedWithErrorMessages msgs ->
1125- #if MIN_VERSION_ghc(9,6,1 )
1125+ #if MIN_VERSION_ghc(9,5,0 )
11261126 throwE $ diagFromErrMsgs sourceParser dflags $ msgs dflags
11271127#else
11281128 throwE $ diagFromSDocErrMsgs sourceParser dflags $ msgs dflags
@@ -1160,7 +1160,7 @@ parseFileContents env customPreprocessor filename ms = do
11601160 -- errors are those from which a parse tree just can't
11611161 -- be produced.
11621162 unless (null errors) $
1163- #if MIN_VERSION_ghc(9,6,1 )
1163+ #if MIN_VERSION_ghc(9,5,0 )
11641164 throwE $ diagFromErrMsgs sourceParser dflags errors
11651165#else
11661166 throwE $ diagFromSDocErrMsgs sourceParser dflags errors
@@ -1195,7 +1195,7 @@ parseFileContents env customPreprocessor filename ms = do
11951195 srcs2 <- liftIO $ filterM doesFileExist srcs1
11961196
11971197 let pm = ParsedModule ms parsed' srcs2
1198- #if MIN_VERSION_ghc(9,6,1 )
1198+ #if MIN_VERSION_ghc(9,5,0 )
11991199 warnings = diagFromErrMsgs sourceParser dflags warns
12001200#else
12011201 warnings = diagFromSDocErrMsgs sourceParser dflags warns
0 commit comments