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

Update example project. #75

Merged
merged 1 commit into from
Mar 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/example-project/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/example-project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"bs-platform": "8.3.3",
"bs-platform": "9.0.2",
"reason-react": "^0.9.1"
},
"scripts": {
10 changes: 5 additions & 5 deletions examples/example-project/src/Hello.re
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@ let l = More.inner + More.n + Other.inner;

let n = More.n;

More.party;
string_of_bool;
let _ = More.party;
let _ = string_of_bool;

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

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

open Something;
open! Something;

let y = x + 10;

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

let thing = "thing";

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

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

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

include More;

Other.oo.person.name;
let _ = Other.oo.person.name;

type lots =
| Parties
4 changes: 2 additions & 2 deletions examples/example-project/src/Json.re
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ type t =
| Null;

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

let white = n => {
let buffer = Buffer.create(n);
for (i in 0 to n - 1) {
for (_ in 0 to n - 1) {
Buffer.add_char(buffer, ' ')
};
Buffer.contents(buffer)