Fix parsing of field names
This commit is contained in:
parent
6a30c57f52
commit
afdd2c88e7
|
@ -1514,7 +1514,7 @@ recordKeyword
|
|||
structuredTypeField :: OccParser [(A.Name, A.Type)]
|
||||
structuredTypeField
|
||||
= do t <- dataType
|
||||
fs <- many1 newFieldName
|
||||
fs <- sepBy1 newFieldName sComma
|
||||
sColon
|
||||
eol
|
||||
return [(f, t) | f <- fs]
|
||||
|
|
Loading…
Reference in New Issue
Block a user