@@ -126,8 +126,8 @@ data SimpleErrorMessage
126126 | ExpectedType Type Kind
127127 | IncorrectConstructorArity (Qualified ProperName)
128128 | ExprDoesNotHaveType Expr Type
129− | PropertyIsMissing String Expr
130− | AdditionalProperty String Expr
129+ | PropertyIsMissing String
130+ | AdditionalProperty String
131131 | CannotApplyFunction Type Expr
132132 | TypeSynonymInstance
133133 | OrphanInstance Ident (Qualified ProperName) [Type]
@@ -618,16 +618,10 @@ prettyPrintSingleError full level e = prettyPrintErrorMessage <$> onTypesInError
618618 , line "does not have type"
619619 , indent $ typeAsBox ty
620620 ]
621− renderSimpleErrorMessage (PropertyIsMissing prop expr) =
622− paras [ line "Row type"
623− , indent $ prettyPrintValue expr
624− , line $ "lacks required label " ++ show prop
625− ]
626− renderSimpleErrorMessage (AdditionalProperty prop expr) =
627− paras [ line "Type of expression"
628− , indent $ prettyPrintValue expr
629− , line $ "contains additional label " ++ show prop
630− ]
621+ renderSimpleErrorMessage (PropertyIsMissing prop) =
622+ line $ "Type of expression lacks required label " ++ show prop ++ "."
623+ renderSimpleErrorMessage (AdditionalProperty prop) =
624+ line $ "Type of expression contains additional label " ++ show prop ++ "."
631625 renderSimpleErrorMessage (CannotApplyFunction fn arg) =
632626 paras [ line "A function of type"
633627 , indent $ typeAsBox fn