module Example where
a = 3
a = 5
You have defined a value with the same name multiple times.
- Rename one of the variables. In this example:
a = 3 a' = 5
- This error also occurs if you have multiple clauses for a function, where you misspelled the function name once. For Example:
bar [] = 10 barr [2] = 2 bar x = length x