projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591f452
)
FIX: parsing of doc options
author
David Waern
<davve@dtek.chalmers.se>
Tue, 2 Oct 2007 14:37:13 +0000
(14:37 +0000)
committer
David Waern
<davve@dtek.chalmers.se>
Tue, 2 Oct 2007 14:37:13 +0000
(14:37 +0000)
Lexing of the doc options pragma was changed, but but no change was
made to the parser to reflect that. This patch fixes this problem.
MERGE TO STABLE
compiler/parser/Parser.y.pp
patch
|
blob
|
history
diff --git
a/compiler/parser/Parser.y.pp
b/compiler/parser/Parser.y.pp
index
2bfb895
..
d91143f
100644
(file)
--- a/
compiler/parser/Parser.y.pp
+++ b/
compiler/parser/Parser.y.pp
@@
-1859,7
+1859,7
@@
docsection :: { Located (n, HsDoc RdrName) }
Right doc -> return (L1 (n, doc)) } }
docoptions :: { String }
- : DOCOPTIONS { getDOCOPTIONS $1 }
+ : DOCOPTIONS '#-}' { getDOCOPTIONS $1 }
moduleheader :: { (HaddockModInfo RdrName, Maybe (HsDoc RdrName)) }
: DOCNEXT {% let string = getDOCNEXT $1 in