Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haddock
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Glasgow Haskell Compiler
haddock
Commits
32d280f3
Unverified
Commit
32d280f3
authored
4 years ago
by
Ben Gamari
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1413 from adinapoli/wip/adinapoli-issue-19920
Rename getErrorMessages Lexer import
parents
f7059f84
c3df9283
No related branches found
Branches containing commit
No related tags found
Tags containing commit
5 merge requests
!38
Make --no-tmp-comp-dir the default
,
!37
Adapt to latest xhtml version, various optimizations
,
!31
Support HsToken in DataDecl and ClassDecl
,
!12
Drop orphan instance when defined upstream.
,
!10
Haddock interfaces produced from `.hi` files
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
+2
-2
2 additions, 2 deletions
haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
with
2 additions
and
2 deletions
haddock-api/src/Haddock/Backends/Hyperlinker/Parser.hs
+
2
−
2
View file @
32d280f3
...
...
@@ -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
,
get
Ps
ErrorMessages
)
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
$
get
Ps
ErrorMessages
pst
)
in
panic
$
showSDoc
dflags
$
text
"Hyperlinker parse error:"
$$
pprLocMsgEnvelope
err
where
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment