Commit e70246a7 authored by Simon Marlow's avatar Simon Marlow

comply with Haskell 98 by not allowing extra commas in import/export lists

parent b084ad51
......@@ -343,9 +343,8 @@ maybeexports :: { Maybe [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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment