projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
comply with Haskell 98 by not allowing extra commas in import/export lists
[ghc-hetmet.git]
/
compiler
/
parser
/
Parser.y.pp
diff --git
a/compiler/parser/Parser.y.pp
b/compiler/parser/Parser.y.pp
index
3bb5ab4
..
1469a66
100644
(file)
--- a/
compiler/parser/Parser.y.pp
+++ b/
compiler/parser/Parser.y.pp
@@
-343,9
+343,8
@@
maybeexports :: { Maybe [LIE RdrName] }
| {- empty -} { Nothing }
exportlist :: { [LIE RdrName] }
| {- empty -} { Nothing }
exportlist :: { [LIE RdrName] }
- : exportlist ',' export { $3 : $1 }
- | exportlist ',' { $1 }
- | export { [$1] }
+ : export { [$1] }
+ | export ',' exportlist { $1 : $3 }
| {- empty -} { [] }
-- No longer allow things like [] and (,,,) to be exported
| {- empty -} { [] }
-- No longer allow things like [] and (,,,) to be exported