Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
e70246a7
Commit
e70246a7
authored
Aug 21, 2006
by
Simon Marlow
Browse files
comply with Haskell 98 by not allowing extra commas in import/export lists
parent
b084ad51
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Parser.y.pp
View file @
e70246a7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment