Skip to content
Snippets Groups Projects
Commit 8f29f696 authored by simonmar's avatar simonmar
Browse files

[haddock @ 2002-05-06 12:49:21 by simonmar]

Fix silly bug in named documentation block lookup.
parent 687e68fa
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment