Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit b1519db

Browse files
committed
Update example project.
1 parent c57ed6d commit b1519db

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

examples/example-project/package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/example-project/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"bs-platform": "8.3.3",
3+
"bs-platform": "9.0.2",
44
"reason-react": "^0.9.1"
55
},
66
"scripts": {

examples/example-project/src/Hello.re

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ let l = More.inner + More.n + Other.inner;
1010

1111
let n = More.n;
1212

13-
More.party;
14-
string_of_bool;
13+
let _ = More.party;
14+
let _ = string_of_bool;
1515

1616
/* let m = {More.a: 2, b: 32.}; */
1717

@@ -31,7 +31,7 @@ module Something = {
3131
}
3232
};
3333

34-
open Something;
34+
open! Something;
3535

3636
let y = x + 10;
3737

@@ -50,7 +50,7 @@ let awesome = 100 + m.age;
5050

5151
let thing = "thing";
5252

53-
let transform = (x, y) => x ++ string_of_float(y);
53+
let transform = (x, y) => x ++ Js.Float.toString(y);
5454

5555
let z = transform("hello ", 5.);
5656

@@ -126,7 +126,7 @@ include OneOneOneOne.TwoTwoTwoTwo;
126126

127127
include More;
128128

129-
Other.oo.person.name;
129+
let _ = Other.oo.person.name;
130130

131131
type lots =
132132
| Parties

examples/example-project/src/Json.re

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type t =
4242
| Null;
4343

4444
let string_of_number = (f) => {
45-
let s = string_of_float(f);
45+
let s = Js.Float.toString(f);
4646
if (s.[String.length(s) - 1] == '.') {
4747
String.sub(s, 0, String.length(s) - 1)
4848
} else {
@@ -180,7 +180,7 @@ let rec stringify = (t) =>
180180

181181
let white = n => {
182182
let buffer = Buffer.create(n);
183-
for (i in 0 to n - 1) {
183+
for (_ in 0 to n - 1) {
184184
Buffer.add_char(buffer, ' ')
185185
};
186186
Buffer.contents(buffer)

0 commit comments

Comments
 (0)