Disallow extended record types with no fields, resolves #280

This commit is contained in:
Evan Czaplicki 2013-10-14 17:42:26 -04:00
parent 115b139774
commit 11a60de544

View file

@ -34,7 +34,7 @@ record =
t <- tvar
whitespace >> string "|" >> whitespace
return t
fields = commaSep $ do
fields = commaSep1 $ do
lbl <- rLabel
whitespace >> hasType >> whitespace
(,) lbl <$> expr