diff options
author | Ben Gamari <ben@smart-cactus.org> | 2021-07-07 11:31:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 11:31:44 -0400 |
commit | 32d280f30d73bb38769700be6ddaf26b9a69c77e (patch) | |
tree | fe2b05c4df990190066471c8e13cda02ada4bb00 /haddock-api/src/Haddock | |
parent | f7059f84687a6aac37405c428a97190662de1dac (diff) | |
parent | c3df9283872dbba1ac8c1ffd1b7e7ef4a54dee7b (diff) |
Merge pull request #1413 from adinapoli/wip/adinapoli-issue-19920
Rename getErrorMessages Lexer import
Diffstat (limited to 'haddock-api/src/Haddock')
-rw-r--r-- | haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs b/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs index 4e9099d8..3929c286 100644 --- a/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs +++ b/haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs @@ -20,7 +20,7 @@ import GHC.Parser.Errors.Ppr () import qualified GHC.Types.Error as E import GHC.Parser.Lexer as Lexer ( P(..), ParseResult(..), PState(..), Token(..) - , initParserState, lexer, mkParserOpts, getErrorMessages) + , initParserState, lexer, mkParserOpts, getPsErrorMessages) import GHC.Data.Bag ( bagToList ) import GHC.Utils.Outputable ( text, ($$) ) import GHC.Utils.Panic ( panic ) @@ -43,7 +43,7 @@ parse parse dflags fpath bs = case unP (go False []) initState of POk _ toks -> reverse toks PFailed pst -> - let err:_ = bagToList (E.getMessages $ getErrorMessages pst) in + let err:_ = bagToList (E.getMessages $ getPsErrorMessages pst) in panic $ showSDoc dflags $ text "Hyperlinker parse error:" $$ pprLocMsgEnvelope err where |