@@ -126,8 +126,8 @@ data SimpleErrorMessage
126 | ExpectedType Type Kind
126 | ExpectedType Type Kind
127 | IncorrectConstructorArity (Qualified ProperName)
127 | IncorrectConstructorArity (Qualified ProperName)
128 | ExprDoesNotHaveType Expr Type
128 | ExprDoesNotHaveType Expr Type
129− | PropertyIsMissing String Expr
129+ | PropertyIsMissing String
130− | AdditionalProperty String Expr
130+ | AdditionalProperty String
131 | CannotApplyFunction Type Expr
131 | CannotApplyFunction Type Expr
132 | TypeSynonymInstance
132 | TypeSynonymInstance
133 | OrphanInstance Ident (Qualified ProperName) [Type]
133 | OrphanInstance Ident (Qualified ProperName) [Type]
@@ -618,16 +618,10 @@ prettyPrintSingleError full level e = prettyPrintErrorMessage <$> onTypesInError
618 , line "does not have type"
618 , line "does not have type"
619 , indent $ typeAsBox ty
619 , indent $ typeAsBox ty
621− renderSimpleErrorMessage (PropertyIsMissing prop expr) =
621+ renderSimpleErrorMessage (PropertyIsMissing prop) =
622− paras [ line "Row type"
623− , indent $ prettyPrintValue expr
624− , line $ "lacks required label " ++ show prop
622+ line $ "Type of expression lacks required label " ++ show prop ++ "."
626− renderSimpleErrorMessage (AdditionalProperty prop expr) =
623+ renderSimpleErrorMessage (AdditionalProperty prop) =
627− paras [ line "Type of expression"
628− , indent $ prettyPrintValue expr
629− , line $ "contains additional label " ++ show prop
624+ line $ "Type of expression contains additional label " ++ show prop ++ "."
631 renderSimpleErrorMessage (CannotApplyFunction fn arg) =
625 renderSimpleErrorMessage (CannotApplyFunction fn arg) =
632 paras [ line "A function of type"
626 paras [ line "A function of type"
633 , indent $ typeAsBox fn
627 , indent $ typeAsBox fn