on master help sign in
Disallow extended record types with no fields, resolves #280
11a60deEvan Czaplicki
compiler/Parse/Type.hs+1−1
@@ -34,7 +34,7 @@ record =
34 t <- tvar
34 t <- tvar
35 whitespace >> string "|" >> whitespace
35 whitespace >> string "|" >> whitespace
36 return t
36 return t
37− fields = commaSep $ do
37+ fields = commaSep1 $ do
38 lbl <- rLabel
38 lbl <- rLabel
39 whitespace >> hasType >> whitespace
39 whitespace >> hasType >> whitespace
40 (,) lbl <$> expr
40 (,) lbl <$> expr