elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

Set insert a Tuple containing a Type, error message confusing #237

Open roine opened 7 years ago

roine commented 7 years ago

This error message bugged me for quite a while until I understood that the Tuple couldn't contain a type prior to be inserted to a Set.

Here's a sample of the phenomenon: https://ellie-app.com/4cJ5WNSqjwLa1/0

Function fromList is expecting the argument to be:

List ( Olive, number )

But it is:

List ( Olive, number )

A better error message could be:


Function fromList is expecting the argument to be:

(comparable, comparable)

But it is:

(Olive, comparable)