Skip to content
GitLab
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
bf04ddcc
Commit
bf04ddcc
authored
Jul 12, 2011
by
Simon Marlow
Browse files
Fix bug in parsing of module headers (see #5243)
parent
07ee1591
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/parser/Parser.y.pp
View file @
bf04ddcc
...
...
@@ -427,14 +427,18 @@ header :: { Located (HsModule RdrName) }
{% fileSrcSpan >>= \ loc ->
return (L loc (HsModule (Just $3) $5 $7 [] $4 $1
))}
|
missing_module_keyword
importdecls
|
header_body2
{% fileSrcSpan >>= \ loc ->
return (L loc (HsModule Nothing Nothing $
2
[] Nothing
return (L loc (HsModule Nothing Nothing $
1
[] Nothing
Nothing)) }
header_body
::
{ [LImportDecl RdrName] }
:
'{'
importdecls
{ $2 }
|
vocurly
importdecls
{ $2 }
|
vocurly
importdecls
{ $2 }
header_body2
::
{ [LImportDecl RdrName] }
:
'{'
importdecls
{ $2 }
|
missing_module_keyword
importdecls
{ $2 }
-----------------------------------------------------------------------------
-- The Export List
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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