Skip to content

Commit 3fe91d0

Browse files
committed
drop other OCaml DS modules
1 parent 2d26286 commit 3fe91d0

File tree

164 files changed

+1225
-34470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1225
-34470
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
We've found a bug for you!
3-
/.../fixtures/modules2.res:1:9-14
3+
/.../fixtures/modules2.res:1:9-19
44

5-
1 │ let b = List.b
5+
1 │ let b = Belt.List.b
66
2 │
77

8-
The value b can't be found in List
8+
The value b can't be found in Belt.List
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11

22
We've found a bug for you!
3-
/.../fixtures/primitives7.res:3:24
3+
/.../fixtures/primitives7.res:3:23
44

55
1 │ /* Wanted list(float), found list(int) */
66
2 │ let a = list{1, 2, 3}
7-
3 │ List.map(n => n +. 2., a)
7+
3 │ a->Belt.List.map(n => n +. 2.)
88
4 │
99

10-
This has type: list<int>
11-
But this function argument is expecting: list<float>
12-
13-
The incompatible parts:
14-
int vs float
10+
This has type: int
11+
But it's being used with the +. operator, which works on: float
12+
13+
Floats and ints have their own mathematical operators. This means you cannot add a float and an int without converting between the two.
14+
15+
Possible solutions:
16+
- Ensure all values in this calculation has the type float. You can convert between floats and ints via Belt.Float.toInt and Belt.Int.fromFloat.
17+
- Change the operator to +, which works on int
1518

1619
You can convert int to float with Belt.Int.toFloat.
1720
If this is a literal, try a number with a trailing dot (e.g. 20.).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let b = List.b
1+
let b = Belt.List.b
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/* Wanted list(float), found list(int) */
22
let a = list{1, 2, 3}
3-
List.map(n => n +. 2., a)
3+
a->Belt.List.map(n => n +. 2.)

jscomp/stdlib-406/complex.res

-112
This file was deleted.

jscomp/stdlib-406/complex.resi

-86
This file was deleted.

0 commit comments

Comments
 (0)