8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e28fb commit 02e0720Copy full SHA for 02e0720
errors/RedefinedIdent.md
@@ -3,19 +3,32 @@
3
## Example
4
5
```purescript
6
-module ShortFailingExample where
+module Example where
7
+
8
+a = 3
9
10
+a = 5
11
-...
12
```
13
14
## Cause
15
-Explain why a user might see this error.
16
+You have defined a value with the same name multiple times.
17
18
## Fix
19
-- Suggest possible solutions.
20
+- Rename one of the variables. In this example:
21
+ ```purescript
22
+ a = 3
23
24
+ a' = 5
25
+ ```
26
27
## Notes
28
-- Additional notes.
29
+- This error also occurs if you have multiple clauses for a function, where you misspelled the function name once. For Example:
30
31
+ bar [] = 10
32
+ barr [2] = 2
33
+ bar x = length x
34
0 commit comments