@@ -21,6 +21,7 @@ data Error
21 | TypeWithoutDefinition String
21 | TypeWithoutDefinition String
22 | PortWithoutAnnotation String
22 | PortWithoutAnnotation String
23 | UnexpectedPort
23 | UnexpectedPort
24+ | DuplicateFieldName String
24 | DuplicateValueDeclaration String
25 | DuplicateValueDeclaration String
25 | DuplicateTypeDeclaration String
26 | DuplicateTypeDeclaration String
26 | DuplicateDefinition String
27 | DuplicateDefinition String
@@ -97,6 +98,12 @@ toReport dealiaser err =
97 ++ "if the module is imported twice, do we send values out the port twice?"
98 ++ "if the module is imported twice, do we send values out the port twice?"
101+ DuplicateFieldName name ->
104+ ("This record has more than one field named `" ++ name ++ "`.")
105+ "There can only be one. Do some renaming to make sure the names are distinct!"
100 DuplicateValueDeclaration name ->
107 DuplicateValueDeclaration name ->
101 Report.simple
108 Report.simple
102 "DUPLICATE DEFINITION"
109 "DUPLICATE DEFINITION"