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 4470b50 commit ae29196Copy full SHA for ae29196
errors/ScopeConflict.md
@@ -8,8 +8,8 @@ module ScopeConflict where
8
-- `Prelude` exports a function called `id`
9
import Prelude
10
11
-id :: Number
12
-id = 1
+identity :: Number
+identity = 1
13
```
14
15
## Cause
@@ -23,10 +23,10 @@ The `ScopeConflict` error occurs when an attempt is made to define a value or ot
23
```purescript
24
module NoScopeConflict where
25
26
- import Prelude hiding (id)
+ import Prelude hiding (identity)
27
28
- id :: Number
29
- id = 1
+ identity :: Number
+ identity = 1
30
31
32
- Alternatively, import the conflicting module using the `as` keyword:
@@ -36,8 +36,8 @@ The `ScopeConflict` error occurs when an attempt is made to define a value or ot
36
37
import Prelude as P
38
39
40
41
42
43
## Notes
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments