Fix parsing of field names

This commit is contained in:
Adam Sampson 2007-05-03 23:15:24 +00:00
parent 6a30c57f52
commit afdd2c88e7

View File

@ -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]