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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Show more breadcrumbs
Timo von Holtz
haddock
Commits
8f29f696
Commit
8f29f696
authored
22 years ago
by
simonmar
Browse files
Options
Downloads
Patches
Plain Diff
[haddock @ 2002-05-06 12:49:21 by simonmar]
Fix silly bug in named documentation block lookup.
parent
687e68fa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Main.hs
+3
-2
3 additions, 2 deletions
src/Main.hs
with
3 additions
and
2 deletions
src/Main.hs
+
3
−
2
View file @
8f29f696
...
...
@@ -591,8 +591,9 @@ findNamedDoc str decls =
where
search
[]
=
Nothing
search
(
HsDocCommentNamed
str
:
rest
)
=
case
matchRegexAll
docNameRE
str
of
Nothing
->
search
rest
Just
(
_
,
_
,
after
,
_
,
_
)
->
Just
after
Just
(
_
,
_
,
after
,
_
,
name'
:
_
)
|
name
==
name'
->
Just
after
_otherwise
->
search
rest
search
(
_other_decl
:
rest
)
=
search
rest
_other
->
Nothing
...
...
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