From 3b8a9531fac9ad678155984ae5778f26d69fe74b Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Fri, 27 Feb 2026 14:58:22 +0100 Subject: [PATCH 01/13] Set version to 12.2.0 --- CHANGELOG.md | 16 ++++++++++++++++ compiler/common/bs_version.ml | 2 +- package.json | 2 +- packages/@rescript/darwin-arm64/package.json | 2 +- packages/@rescript/darwin-x64/package.json | 2 +- packages/@rescript/linux-arm64/package.json | 2 +- packages/@rescript/linux-x64/package.json | 2 +- packages/@rescript/runtime/package.json | 2 +- packages/@rescript/win32-x64/package.json | 2 +- rewatch/Cargo.lock | 2 +- rewatch/Cargo.toml | 2 +- tests/dependencies/rescript-react/package.json | 2 +- yarn.config.cjs | 2 +- 13 files changed, 28 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 554d578336d..072289a0498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,22 @@ > - :nail_care: [Polish] > - :house: [Internal] +# 12.2.0 + +#### :boom: Breaking Change + +#### :eyeglasses: Spec Compliance + +#### :rocket: New Feature + +#### :bug: Bug fix + +#### :memo: Documentation + +#### :nail_care: Polish + +#### :house: Internal + # 12.2.0-rc.1 #### :boom: Breaking Change diff --git a/compiler/common/bs_version.ml b/compiler/common/bs_version.ml index 0c458c38acf..ef2d08ac2c2 100644 --- a/compiler/common/bs_version.ml +++ b/compiler/common/bs_version.ml @@ -21,5 +21,5 @@ * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *) -let version = "12.2.0-rc.1" +let version = "12.2.0" let header = "// Generated by ReScript, PLEASE EDIT WITH CARE" diff --git a/package.json b/package.json index ed525c9ca98..d3853b89232 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rescript", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript toolchain", "type": "module", "keywords": [ diff --git a/packages/@rescript/darwin-arm64/package.json b/packages/@rescript/darwin-arm64/package.json index a080f379d69..09f3ca74871 100644 --- a/packages/@rescript/darwin-arm64/package.json +++ b/packages/@rescript/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/darwin-arm64", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript binaries for MacOS ARM64", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/packages/@rescript/darwin-x64/package.json b/packages/@rescript/darwin-x64/package.json index c87b637d64f..c1843722c8e 100644 --- a/packages/@rescript/darwin-x64/package.json +++ b/packages/@rescript/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/darwin-x64", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript binaries for MacOS x86_64", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/packages/@rescript/linux-arm64/package.json b/packages/@rescript/linux-arm64/package.json index 79117799ed7..6a55841ecac 100644 --- a/packages/@rescript/linux-arm64/package.json +++ b/packages/@rescript/linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/linux-arm64", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript binaries for Linux ARM64", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/packages/@rescript/linux-x64/package.json b/packages/@rescript/linux-x64/package.json index f7de8068565..fe730c5a6e6 100644 --- a/packages/@rescript/linux-x64/package.json +++ b/packages/@rescript/linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/linux-x64", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript binaries for Linux x86_64", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/packages/@rescript/runtime/package.json b/packages/@rescript/runtime/package.json index 876eea65f0f..a3a43fc287c 100644 --- a/packages/@rescript/runtime/package.json +++ b/packages/@rescript/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/runtime", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript runtime modules", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/packages/@rescript/win32-x64/package.json b/packages/@rescript/win32-x64/package.json index 9cd8ae78c38..48b1fe439c4 100644 --- a/packages/@rescript/win32-x64/package.json +++ b/packages/@rescript/win32-x64/package.json @@ -1,6 +1,6 @@ { "name": "@rescript/win32-x64", - "version": "12.2.0-rc.1", + "version": "12.2.0", "description": "ReScript binaries for Windows x86_64", "type": "module", "homepage": "https://rescript-lang.org", diff --git a/rewatch/Cargo.lock b/rewatch/Cargo.lock index 386cb8d4a27..bafe3a0fa59 100644 --- a/rewatch/Cargo.lock +++ b/rewatch/Cargo.lock @@ -768,7 +768,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" [[package]] name = "rescript" -version = "12.2.0-rc.1" +version = "12.2.0" dependencies = [ "ahash", "anyhow", diff --git a/rewatch/Cargo.toml b/rewatch/Cargo.toml index 8d900243b2d..afa9e486d89 100644 --- a/rewatch/Cargo.toml +++ b/rewatch/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rescript" -version = "12.2.0-rc.1" +version = "12.2.0" edition = "2024" rust-version = "1.91" diff --git a/tests/dependencies/rescript-react/package.json b/tests/dependencies/rescript-react/package.json index 84992722f63..7864b60dbdf 100644 --- a/tests/dependencies/rescript-react/package.json +++ b/tests/dependencies/rescript-react/package.json @@ -1,7 +1,7 @@ { "name": "@rescript/react", "private": true, - "version": "12.2.0-rc.1", + "version": "12.2.0", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/yarn.config.cjs b/yarn.config.cjs index 0ba1b89a674..1e6c9337eb8 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -14,7 +14,7 @@ const execPromise = util.promisify(exec); * @param {Yarn.Constraints.Context} ctx */ async function enforceCompilerMeta({ Yarn }) { - const EXPECTED_VERSION = "12.2.0-rc.1"; + const EXPECTED_VERSION = "12.2.0"; for (const workspace of Yarn.workspaces()) { const { ident } = workspace.pkg; From 74075bc4ef7b23844f33132c8958575cb6f17356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Tsnobiladz=C3=A9?= Date: Mon, 2 Feb 2026 13:28:47 +0100 Subject: [PATCH 02/13] do not setup node/yarn when not needed (#8238) --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65655509d91..4aba435cae4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -528,6 +528,7 @@ jobs: fi - name: Use Node.js + if: steps.diffcheck.outputs.clean == 'false' uses: actions/setup-node@v6 with: cache: yarn From 869881737d5f4a2afa333da63cd33ac98e7f2bf1 Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 16 Feb 2026 10:25:10 +0100 Subject: [PATCH 03/13] Fix Parmatch crash on empty record head patterns (#8246) * Fix Parmatch crash on empty record head patterns * Simpler test --- compiler/ml/parmatch.ml | 2 +- .../src/parmatch_empty_record_pattern_test.mjs | 13 +++++++++++++ .../src/parmatch_empty_record_pattern_test.res | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/tests/src/parmatch_empty_record_pattern_test.mjs create mode 100644 tests/tests/src/parmatch_empty_record_pattern_test.res diff --git a/compiler/ml/parmatch.ml b/compiler/ml/parmatch.ml index 9e66800c8b4..ebb6903c661 100644 --- a/compiler/ml/parmatch.ml +++ b/compiler/ml/parmatch.ml @@ -512,6 +512,7 @@ let extract_fields omegas arg = let all_record_args lbls = match lbls with + | [] -> [] | (_, {lbl_all}, _, opt) :: _ -> let t = Array.map @@ -560,7 +561,6 @@ let all_record_args lbls = t.(lbl.lbl_pos) <- x) lbls; Array.to_list t - | _ -> fatal_error "Parmatch.all_record_args" (* Build argument list when p2 >= p1, where p1 is a simple pattern *) let rec simple_match_args p1 p2 = diff --git a/tests/tests/src/parmatch_empty_record_pattern_test.mjs b/tests/tests/src/parmatch_empty_record_pattern_test.mjs new file mode 100644 index 00000000000..a1d4eda9c80 --- /dev/null +++ b/tests/tests/src/parmatch_empty_record_pattern_test.mjs @@ -0,0 +1,13 @@ +// Generated by ReScript, PLEASE EDIT WITH CARE + + +let match = {}; + +let emptyDictPatternShouldCompile; + +emptyDictPatternShouldCompile = typeof match === "object" && match !== null && !Array.isArray(match); + +export { + emptyDictPatternShouldCompile, +} +/* emptyDictPatternShouldCompile Not a pure module */ diff --git a/tests/tests/src/parmatch_empty_record_pattern_test.res b/tests/tests/src/parmatch_empty_record_pattern_test.res new file mode 100644 index 00000000000..0b0fcad5958 --- /dev/null +++ b/tests/tests/src/parmatch_empty_record_pattern_test.res @@ -0,0 +1,4 @@ +let emptyDictPatternShouldCompile = switch JSON.Object(dict{}) { +| JSON.Object(dict{}) => true +| _ => false +} From 3d49df2f1f45920d6cc9de6c2debe194741376ac Mon Sep 17 00:00:00 2001 From: Florian Hammerschmidt Date: Mon, 16 Feb 2026 10:54:44 +0100 Subject: [PATCH 04/13] Changelog for #8246 (#8247) --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 072289a0498..c6a0c6120ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ #### :bug: Bug fix +- Fix compiler crash (`Fatal error: Parmatch.all_record_args`) when matching empty dict/record patterns. https://github.com/rescript-lang/rescript/pull/8246 + #### :memo: Documentation #### :nail_care: Polish From 6b95fac8108681b82d4c4965f69ccc71b66f3fbd Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Wed, 25 Feb 2026 09:02:19 +0100 Subject: [PATCH 05/13] Fix null falling into object branch in untagged variant switch (#8251) When pattern matching on untagged variants with both an Object case and a null/wildcard case, null (typeof "object") would incorrectly match the object branch. Emit a null check before the typeof switch when both conditions are present. Fixes #8251 Signed-Off-By: Cristiano Calcagno Co-Authored-By: Claude Opus 4.6 --- CHANGELOG.md | 1 + compiler/core/lam_compile.ml | 16 ++++++++++- tests/tests/src/js_json_test.mjs | 46 +++++++++++++++++++++++--------- tests/tests/src/js_json_test.res | 15 +++++++++++ 4 files changed, 64 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6a0c6120ff..7732fe3af6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ #### :bug: Bug fix - Fix compiler crash (`Fatal error: Parmatch.all_record_args`) when matching empty dict/record patterns. https://github.com/rescript-lang/rescript/pull/8246 +- Fix `null` falling into the object branch instead of the wildcard when pattern matching on untagged variants with both `Object` and `null` cases. https://github.com/rescript-lang/rescript/pull/8253 #### :memo: Documentation diff --git a/compiler/core/lam_compile.ml b/compiler/core/lam_compile.ml index 739056132b1..680bce50a7d 100644 --- a/compiler/core/lam_compile.ml +++ b/compiler/core/lam_compile.ml @@ -814,6 +814,10 @@ let compile output_prefix = | _ -> false in let clause_is_not_typeof (tag, _) = tag_is_not_typeof tag in + let clause_is_object_typeof = function + | Ast_untagged_variants.Untagged ObjectType, _ -> true + | _ -> false + in let switch ?default ?declaration e clauses = let not_typeof_clauses, typeof_clauses = List.partition clause_is_not_typeof clauses @@ -827,7 +831,17 @@ let compile output_prefix = (E.emit_check (IsInstanceOf (instance_type, Expr e))) switch_body ~else_:[build_if_chain rest] - | _ -> S.string_switch ?default ?declaration (E.typeof e) typeof_clauses + | _ -> + let typeof_switch () = + S.string_switch ?default ?declaration (E.typeof e) typeof_clauses + in + if has_null_case && List.exists clause_is_object_typeof typeof_clauses + then + match default with + | Some default_body -> + S.if_ (E.is_null e) default_body ~else_:[typeof_switch ()] + | None -> typeof_switch () + else typeof_switch () in build_if_chain not_typeof_clauses in diff --git a/tests/tests/src/js_json_test.mjs b/tests/tests/src/js_json_test.mjs index 45917593c8a..9f38102f44f 100644 --- a/tests/tests/src/js_json_test.mjs +++ b/tests/tests/src/js_json_test.mjs @@ -367,24 +367,44 @@ Mocha.describe("Js_json_test", () => { Test_utils.eq("File \"js_json_test.res\", line 314, characters 7-14", Js_json.decodeArray({}), undefined); Test_utils.eq("File \"js_json_test.res\", line 315, characters 7-14", Js_json.decodeArray(1.23), undefined); }); + Mocha.test("JSON Array/Object switch falls through to wildcard on null", () => { + let classifyArrayOrObject = json => { + if (Array.isArray(json)) { + return json.length; + } + if (json === null) { + return; + } + switch (typeof json) { + case "object" : + Js_dict.get(json, "x"); + return 0; + default: + return; + } + }; + Test_utils.eq("File \"js_json_test.res\", line 328, characters 7-14", classifyArrayOrObject(null), undefined); + Test_utils.eq("File \"js_json_test.res\", line 329, characters 7-14", classifyArrayOrObject([1]), 1); + Test_utils.eq("File \"js_json_test.res\", line 330, characters 7-14", classifyArrayOrObject({}), 0); + }); Mocha.test("JSON decodeBoolean", () => { - Test_utils.eq("File \"js_json_test.res\", line 319, characters 7-14", Js_json.decodeBoolean("test"), undefined); - Test_utils.eq("File \"js_json_test.res\", line 320, characters 7-14", Js_json.decodeBoolean(true), true); - Test_utils.eq("File \"js_json_test.res\", line 321, characters 7-14", Js_json.decodeBoolean([]), undefined); - Test_utils.eq("File \"js_json_test.res\", line 322, characters 7-14", Js_json.decodeBoolean(null), undefined); - Test_utils.eq("File \"js_json_test.res\", line 323, characters 7-14", Js_json.decodeBoolean({}), undefined); - Test_utils.eq("File \"js_json_test.res\", line 324, characters 7-14", Js_json.decodeBoolean(1.23), undefined); + Test_utils.eq("File \"js_json_test.res\", line 334, characters 7-14", Js_json.decodeBoolean("test"), undefined); + Test_utils.eq("File \"js_json_test.res\", line 335, characters 7-14", Js_json.decodeBoolean(true), true); + Test_utils.eq("File \"js_json_test.res\", line 336, characters 7-14", Js_json.decodeBoolean([]), undefined); + Test_utils.eq("File \"js_json_test.res\", line 337, characters 7-14", Js_json.decodeBoolean(null), undefined); + Test_utils.eq("File \"js_json_test.res\", line 338, characters 7-14", Js_json.decodeBoolean({}), undefined); + Test_utils.eq("File \"js_json_test.res\", line 339, characters 7-14", Js_json.decodeBoolean(1.23), undefined); }); Mocha.test("JSON decodeNull", () => { - Test_utils.eq("File \"js_json_test.res\", line 328, characters 7-14", Js_json.decodeNull("test"), undefined); - Test_utils.eq("File \"js_json_test.res\", line 329, characters 7-14", Js_json.decodeNull(true), undefined); - Test_utils.eq("File \"js_json_test.res\", line 330, characters 7-14", Js_json.decodeNull([]), undefined); - Test_utils.eq("File \"js_json_test.res\", line 331, characters 7-14", Js_json.decodeNull(null), null); - Test_utils.eq("File \"js_json_test.res\", line 332, characters 7-14", Js_json.decodeNull({}), undefined); - Test_utils.eq("File \"js_json_test.res\", line 333, characters 7-14", Js_json.decodeNull(1.23), undefined); + Test_utils.eq("File \"js_json_test.res\", line 343, characters 7-14", Js_json.decodeNull("test"), undefined); + Test_utils.eq("File \"js_json_test.res\", line 344, characters 7-14", Js_json.decodeNull(true), undefined); + Test_utils.eq("File \"js_json_test.res\", line 345, characters 7-14", Js_json.decodeNull([]), undefined); + Test_utils.eq("File \"js_json_test.res\", line 346, characters 7-14", Js_json.decodeNull(null), null); + Test_utils.eq("File \"js_json_test.res\", line 347, characters 7-14", Js_json.decodeNull({}), undefined); + Test_utils.eq("File \"js_json_test.res\", line 348, characters 7-14", Js_json.decodeNull(1.23), undefined); }); Mocha.test("JSON serialize/deserialize identity", () => { - let idtest = obj => Test_utils.eq("File \"js_json_test.res\", line 339, characters 27-34", obj, Js_json.deserializeUnsafe(Js_json.serializeExn(obj))); + let idtest = obj => Test_utils.eq("File \"js_json_test.res\", line 354, characters 27-34", obj, Js_json.deserializeUnsafe(Js_json.serializeExn(obj))); idtest(undefined); idtest({ hd: [ diff --git a/tests/tests/src/js_json_test.res b/tests/tests/src/js_json_test.res index e04ef21b21c..26fa6320d0f 100644 --- a/tests/tests/src/js_json_test.res +++ b/tests/tests/src/js_json_test.res @@ -315,6 +315,21 @@ describe(__MODULE__, () => { eq(__LOC__, J.decodeArray(J.number(1.23)), None) }) + test("JSON Array/Object switch falls through to wildcard on null", () => { + let classifyArrayOrObject = (json: J.t) => + switch json { + | J.Array(items) => Some(items->Js.Array2.length) + | J.Object(dict) => + ignore(Js.Dict.get(dict, "x")) + Some(0) + | _ => None + } + + eq(__LOC__, classifyArrayOrObject(J.null), None) + eq(__LOC__, classifyArrayOrObject(J.array([J.number(1.)])), Some(1)) + eq(__LOC__, classifyArrayOrObject(J.object_(Js.Dict.empty())), Some(0)) + }) + test("JSON decodeBoolean", () => { eq(__LOC__, J.decodeBoolean(J.string("test")), None) eq(__LOC__, J.decodeBoolean(J.boolean(true)), Some(true)) From e991bdec15cad946ad1c0342b4ab1a28282dfdda Mon Sep 17 00:00:00 2001 From: Cristiano Calcagno Date: Wed, 25 Feb 2026 14:19:20 +0100 Subject: [PATCH 06/13] Also guard against arrays falling into object branch in untagged variant switch (#8251) Arrays also have typeof "object", so when there's an ObjectType typeof case but no Array instanceof case, arrays would incorrectly match the object branch. Add an Array.isArray guard alongside the null guard. Also clean up the guard logic to use direct pattern matching instead of intermediate list building. Signed-Off-By: Cristiano Calcagno Co-Authored-By: Claude Opus 4.6 --- compiler/core/lam_compile.ml | 43 +++++++++++++++++++++--------- tests/tests/src/js_json_test.mjs | 45 ++++++++++++++++++++++---------- tests/tests/src/js_json_test.res | 15 ++++++++++- 3 files changed, 76 insertions(+), 27 deletions(-) diff --git a/compiler/core/lam_compile.ml b/compiler/core/lam_compile.ml index 680bce50a7d..87a25bfe2ad 100644 --- a/compiler/core/lam_compile.ml +++ b/compiler/core/lam_compile.ml @@ -814,14 +814,29 @@ let compile output_prefix = | _ -> false in let clause_is_not_typeof (tag, _) = tag_is_not_typeof tag in - let clause_is_object_typeof = function - | Ast_untagged_variants.Untagged ObjectType, _ -> true - | _ -> false - in let switch ?default ?declaration e clauses = let not_typeof_clauses, typeof_clauses = List.partition clause_is_not_typeof clauses in + let has_object_typeof = + List.exists + (function + | Ast_untagged_variants.Untagged ObjectType, _ -> true + | _ -> false) + typeof_clauses + in + let has_array_case = + List.exists + (function + | Ast_untagged_variants.Untagged (InstanceType Array), _ -> true + | _ -> false) + not_typeof_clauses + in + (* When there's an ObjectType typeof case, null and arrays can + incorrectly match it (typeof null === typeof [] === "object"). + Guard against them when they should fall through to default. *) + let needs_null_guard = has_object_typeof && has_null_case in + let needs_array_guard = has_object_typeof && not has_array_case in let rec build_if_chain remaining_clauses = match remaining_clauses with | ( Ast_untagged_variants.Untagged (InstanceType instance_type), @@ -831,17 +846,21 @@ let compile output_prefix = (E.emit_check (IsInstanceOf (instance_type, Expr e))) switch_body ~else_:[build_if_chain rest] - | _ -> + | _ -> ( let typeof_switch () = S.string_switch ?default ?declaration (E.typeof e) typeof_clauses in - if has_null_case && List.exists clause_is_object_typeof typeof_clauses - then - match default with - | Some default_body -> - S.if_ (E.is_null e) default_body ~else_:[typeof_switch ()] - | None -> typeof_switch () - else typeof_switch () + let guard = + match (needs_null_guard, needs_array_guard) with + | true, true -> Some (E.or_ (E.is_null e) (E.is_array e)) + | true, false -> Some (E.is_null e) + | false, true -> Some (E.is_array e) + | false, false -> None + in + match (guard, default) with + | Some guard, Some default_body -> + S.if_ guard default_body ~else_:[typeof_switch ()] + | _ -> typeof_switch ()) in build_if_chain not_typeof_clauses in diff --git a/tests/tests/src/js_json_test.mjs b/tests/tests/src/js_json_test.mjs index 9f38102f44f..7d86408aab3 100644 --- a/tests/tests/src/js_json_test.mjs +++ b/tests/tests/src/js_json_test.mjs @@ -367,7 +367,7 @@ Mocha.describe("Js_json_test", () => { Test_utils.eq("File \"js_json_test.res\", line 314, characters 7-14", Js_json.decodeArray({}), undefined); Test_utils.eq("File \"js_json_test.res\", line 315, characters 7-14", Js_json.decodeArray(1.23), undefined); }); - Mocha.test("JSON Array/Object switch falls through to wildcard on null", () => { + Mocha.test("JSON Array/Object switch falls through to wildcard on null and array", () => { let classifyArrayOrObject = json => { if (Array.isArray(json)) { return json.length; @@ -386,25 +386,42 @@ Mocha.describe("Js_json_test", () => { Test_utils.eq("File \"js_json_test.res\", line 328, characters 7-14", classifyArrayOrObject(null), undefined); Test_utils.eq("File \"js_json_test.res\", line 329, characters 7-14", classifyArrayOrObject([1]), 1); Test_utils.eq("File \"js_json_test.res\", line 330, characters 7-14", classifyArrayOrObject({}), 0); + let classifyObjectOnly = json => { + if (json === null || Array.isArray(json)) { + return "default"; + } + switch (typeof json) { + case "string" : + return "String"; + case "object" : + return "Object"; + default: + return "default"; + } + }; + Test_utils.eq("File \"js_json_test.res\", line 340, characters 7-14", classifyObjectOnly(null), "default"); + Test_utils.eq("File \"js_json_test.res\", line 341, characters 7-14", classifyObjectOnly([]), "default"); + Test_utils.eq("File \"js_json_test.res\", line 342, characters 7-14", classifyObjectOnly({}), "Object"); + Test_utils.eq("File \"js_json_test.res\", line 343, characters 7-14", classifyObjectOnly("hi"), "String"); }); Mocha.test("JSON decodeBoolean", () => { - Test_utils.eq("File \"js_json_test.res\", line 334, characters 7-14", Js_json.decodeBoolean("test"), undefined); - Test_utils.eq("File \"js_json_test.res\", line 335, characters 7-14", Js_json.decodeBoolean(true), true); - Test_utils.eq("File \"js_json_test.res\", line 336, characters 7-14", Js_json.decodeBoolean([]), undefined); - Test_utils.eq("File \"js_json_test.res\", line 337, characters 7-14", Js_json.decodeBoolean(null), undefined); - Test_utils.eq("File \"js_json_test.res\", line 338, characters 7-14", Js_json.decodeBoolean({}), undefined); - Test_utils.eq("File \"js_json_test.res\", line 339, characters 7-14", Js_json.decodeBoolean(1.23), undefined); + Test_utils.eq("File \"js_json_test.res\", line 347, characters 7-14", Js_json.decodeBoolean("test"), undefined); + Test_utils.eq("File \"js_json_test.res\", line 348, characters 7-14", Js_json.decodeBoolean(true), true); + Test_utils.eq("File \"js_json_test.res\", line 349, characters 7-14", Js_json.decodeBoolean([]), undefined); + Test_utils.eq("File \"js_json_test.res\", line 350, characters 7-14", Js_json.decodeBoolean(null), undefined); + Test_utils.eq("File \"js_json_test.res\", line 351, characters 7-14", Js_json.decodeBoolean({}), undefined); + Test_utils.eq("File \"js_json_test.res\", line 352, characters 7-14", Js_json.decodeBoolean(1.23), undefined); }); Mocha.test("JSON decodeNull", () => { - Test_utils.eq("File \"js_json_test.res\", line 343, characters 7-14", Js_json.decodeNull("test"), undefined); - Test_utils.eq("File \"js_json_test.res\", line 344, characters 7-14", Js_json.decodeNull(true), undefined); - Test_utils.eq("File \"js_json_test.res\", line 345, characters 7-14", Js_json.decodeNull([]), undefined); - Test_utils.eq("File \"js_json_test.res\", line 346, characters 7-14", Js_json.decodeNull(null), null); - Test_utils.eq("File \"js_json_test.res\", line 347, characters 7-14", Js_json.decodeNull({}), undefined); - Test_utils.eq("File \"js_json_test.res\", line 348, characters 7-14", Js_json.decodeNull(1.23), undefined); + Test_utils.eq("File \"js_json_test.res\", line 356, characters 7-14", Js_json.decodeNull("test"), undefined); + Test_utils.eq("File \"js_json_test.res\", line 357, characters 7-14", Js_json.decodeNull(true), undefined); + Test_utils.eq("File \"js_json_test.res\", line 358, characters 7-14", Js_json.decodeNull([]), undefined); + Test_utils.eq("File \"js_json_test.res\", line 359, characters 7-14", Js_json.decodeNull(null), null); + Test_utils.eq("File \"js_json_test.res\", line 360, characters 7-14", Js_json.decodeNull({}), undefined); + Test_utils.eq("File \"js_json_test.res\", line 361, characters 7-14", Js_json.decodeNull(1.23), undefined); }); Mocha.test("JSON serialize/deserialize identity", () => { - let idtest = obj => Test_utils.eq("File \"js_json_test.res\", line 354, characters 27-34", obj, Js_json.deserializeUnsafe(Js_json.serializeExn(obj))); + let idtest = obj => Test_utils.eq("File \"js_json_test.res\", line 367, characters 27-34", obj, Js_json.deserializeUnsafe(Js_json.serializeExn(obj))); idtest(undefined); idtest({ hd: [ diff --git a/tests/tests/src/js_json_test.res b/tests/tests/src/js_json_test.res index 26fa6320d0f..0e1bad5add7 100644 --- a/tests/tests/src/js_json_test.res +++ b/tests/tests/src/js_json_test.res @@ -315,7 +315,7 @@ describe(__MODULE__, () => { eq(__LOC__, J.decodeArray(J.number(1.23)), None) }) - test("JSON Array/Object switch falls through to wildcard on null", () => { + test("JSON Array/Object switch falls through to wildcard on null and array", () => { let classifyArrayOrObject = (json: J.t) => switch json { | J.Array(items) => Some(items->Js.Array2.length) @@ -328,6 +328,19 @@ describe(__MODULE__, () => { eq(__LOC__, classifyArrayOrObject(J.null), None) eq(__LOC__, classifyArrayOrObject(J.array([J.number(1.)])), Some(1)) eq(__LOC__, classifyArrayOrObject(J.object_(Js.Dict.empty())), Some(0)) + + // When there's no Array case, arrays should fall to wildcard + let classifyObjectOnly = (json: J.t) => + switch json { + | J.Object(_) => "Object" + | J.String(_) => "String" + | _ => "default" + } + + eq(__LOC__, classifyObjectOnly(J.null), "default") + eq(__LOC__, classifyObjectOnly(J.array([])), "default") + eq(__LOC__, classifyObjectOnly(J.object_(Js.Dict.empty())), "Object") + eq(__LOC__, classifyObjectOnly(J.string("hi")), "String") }) test("JSON decodeBoolean", () => { From 580f72ef7bcd7d1263ad39877731f4306a72bc81 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 17 Feb 2026 10:31:12 +0100 Subject: [PATCH 07/13] Clarify ReScript licensing --- LICENSE | 29 +++++-------------- compiler/syntax/LICENSE => LICENSE.MIT | 3 +- README.md | 11 +++++-- package.json | 2 +- packages/@rescript/darwin-arm64/package.json | 1 + packages/@rescript/darwin-x64/package.json | 1 + packages/@rescript/linux-arm64/package.json | 1 + packages/@rescript/linux-x64/package.json | 1 + packages/@rescript/runtime/Belt.res | 24 ++------------- packages/@rescript/runtime/Belt_Array.res | 17 ++++------- packages/@rescript/runtime/Belt_Array.resi | 18 ++++-------- packages/@rescript/runtime/Belt_Float.res | 26 +++-------------- packages/@rescript/runtime/Belt_Float.resi | 26 +++-------------- packages/@rescript/runtime/Belt_HashMap.res | 18 ++++-------- packages/@rescript/runtime/Belt_HashMap.resi | 26 +++-------------- .../@rescript/runtime/Belt_HashMapInt.res | 17 ++++------- .../@rescript/runtime/Belt_HashMapString.res | 17 ++++------- packages/@rescript/runtime/Belt_HashSet.res | 26 +++-------------- packages/@rescript/runtime/Belt_HashSet.resi | 26 +++-------------- .../@rescript/runtime/Belt_HashSetInt.resi | 26 +++-------------- .../@rescript/runtime/Belt_HashSetString.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Id.res | 26 +++-------------- packages/@rescript/runtime/Belt_Id.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Int.res | 26 +++-------------- packages/@rescript/runtime/Belt_Int.resi | 26 +++-------------- packages/@rescript/runtime/Belt_List.res | 26 +++-------------- packages/@rescript/runtime/Belt_List.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Map.res | 18 ++++-------- packages/@rescript/runtime/Belt_Map.resi | 18 ++++-------- packages/@rescript/runtime/Belt_MapDict.res | 26 +++-------------- packages/@rescript/runtime/Belt_MapDict.resi | 26 +++-------------- .../@rescript/runtime/Belt_MutableMap.res | 26 +++-------------- .../@rescript/runtime/Belt_MutableMap.resi | 26 +++-------------- .../@rescript/runtime/Belt_MutableMapInt.resi | 26 +++-------------- .../runtime/Belt_MutableMapString.resi | 26 +++-------------- .../@rescript/runtime/Belt_MutableQueue.res | 22 ++++---------- .../@rescript/runtime/Belt_MutableQueue.resi | 20 ++++--------- .../@rescript/runtime/Belt_MutableSet.res | 26 +++-------------- .../@rescript/runtime/Belt_MutableSet.resi | 26 +++-------------- .../@rescript/runtime/Belt_MutableSetInt.res | 26 +++-------------- .../@rescript/runtime/Belt_MutableSetInt.resi | 26 +++-------------- .../runtime/Belt_MutableSetString.res | 26 +++-------------- .../runtime/Belt_MutableSetString.resi | 26 +++-------------- .../@rescript/runtime/Belt_MutableStack.res | 26 +++-------------- .../@rescript/runtime/Belt_MutableStack.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Option.res | 26 +++-------------- packages/@rescript/runtime/Belt_Option.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Range.res | 26 +++-------------- packages/@rescript/runtime/Belt_Range.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Result.res | 26 +++-------------- packages/@rescript/runtime/Belt_Result.resi | 26 +++-------------- packages/@rescript/runtime/Belt_Set.res | 26 +++-------------- packages/@rescript/runtime/Belt_Set.resi | 26 +++-------------- packages/@rescript/runtime/Belt_SetDict.res | 26 +++-------------- packages/@rescript/runtime/Belt_SetDict.resi | 26 +++-------------- packages/@rescript/runtime/Belt_SetInt.resi | 26 +++-------------- .../@rescript/runtime/Belt_SetString.resi | 26 +++-------------- packages/@rescript/runtime/Belt_SortArray.res | 26 +++-------------- .../@rescript/runtime/Belt_SortArray.resi | 26 +++-------------- .../@rescript/runtime/Belt_SortArrayInt.resi | 26 +++-------------- .../runtime/Belt_SortArrayString.resi | 26 +++-------------- .../@rescript/runtime/Belt_internalAVLset.res | 26 +++-------------- .../runtime/Belt_internalAVLset.resi | 26 +++-------------- .../runtime/Belt_internalAVLtree.res | 17 ++++------- .../runtime/Belt_internalAVLtree.resi | 26 +++-------------- .../runtime/Belt_internalBuckets.res | 17 ++++------- .../runtime/Belt_internalBuckets.resi | 26 +++-------------- .../runtime/Belt_internalBucketsType.res | 26 +++-------------- .../runtime/Belt_internalBucketsType.resi | 26 +++-------------- .../runtime/Belt_internalSetBuckets.res | 26 +++-------------- .../runtime/Belt_internalSetBuckets.resi | 26 +++-------------- packages/@rescript/runtime/Js.res | 24 ++------------- packages/@rescript/runtime/Js_OO.res | 26 +++-------------- packages/@rescript/runtime/Js_array.res | 24 ++------------- packages/@rescript/runtime/Js_array2.res | 24 ++------------- packages/@rescript/runtime/Js_date.res | 24 ++------------- packages/@rescript/runtime/Js_dict.res | 24 ++------------- packages/@rescript/runtime/Js_dict.resi | 24 ++------------- packages/@rescript/runtime/Js_float.res | 24 ++------------- packages/@rescript/runtime/Js_global.res | 26 +++-------------- packages/@rescript/runtime/Js_int.res | 24 ++------------- packages/@rescript/runtime/Js_json.res | 24 ++------------- packages/@rescript/runtime/Js_json.resi | 24 ++------------- packages/@rescript/runtime/Js_math.res | 24 ++------------- packages/@rescript/runtime/Js_null.res | 24 ++------------- packages/@rescript/runtime/Js_null.resi | 24 ++------------- .../@rescript/runtime/Js_null_undefined.res | 24 ++------------- .../@rescript/runtime/Js_null_undefined.resi | 24 ++------------- packages/@rescript/runtime/Js_obj.res | 24 ++------------- packages/@rescript/runtime/Js_option.res | 24 ++------------- packages/@rescript/runtime/Js_option.resi | 24 ++------------- packages/@rescript/runtime/Js_promise.res | 24 ++------------- packages/@rescript/runtime/Js_promise.resi | 24 ++------------- packages/@rescript/runtime/Js_re.res | 24 ++------------- packages/@rescript/runtime/Js_result.res | 24 ++------------- packages/@rescript/runtime/Js_result.resi | 24 ++------------- packages/@rescript/runtime/Js_string.res | 24 ++------------- packages/@rescript/runtime/Js_string2.res | 24 ++------------- packages/@rescript/runtime/Js_typed_array.res | 24 ++------------- .../@rescript/runtime/Js_typed_array2.res | 24 ++------------- packages/@rescript/runtime/Js_types.res | 24 ++------------- packages/@rescript/runtime/Js_types.resi | 24 ++------------- packages/@rescript/runtime/Js_undefined.res | 24 ++------------- packages/@rescript/runtime/Js_undefined.resi | 24 ++------------- packages/@rescript/runtime/Jsx.res | 26 +++-------------- packages/@rescript/runtime/JsxDOM.res | 26 +++-------------- packages/@rescript/runtime/JsxDOMStyle.res | 26 +++-------------- packages/@rescript/runtime/JsxEvent.res | 24 ++------------- .../@rescript/runtime/Primitive_curry.res | 26 +++-------------- .../runtime/Primitive_exceptions.res | 26 +++-------------- packages/@rescript/runtime/Primitive_hash.res | 24 ++------------- .../@rescript/runtime/Primitive_hash.resi | 26 +++-------------- .../@rescript/runtime/Primitive_object.res | 24 ++------------- .../@rescript/runtime/Primitive_object.resi | 24 ++------------- .../@rescript/runtime/Primitive_option.res | 24 ++------------- .../@rescript/runtime/Primitive_option.resi | 24 ++------------- .../runtime/Primitive_string_extern.res | 24 ++------------- .../@rescript/runtime/Stdlib_DataView.resi | 26 +++-------------- packages/@rescript/runtime/Stdlib_Exn.res | 24 ++------------- packages/@rescript/runtime/Stdlib_Exn.resi | 24 ++------------- packages/@rescript/runtime/Stdlib_Float.resi | 24 ++------------- packages/@rescript/runtime/Stdlib_Int.resi | 24 ++------------- packages/@rescript/runtime/Stdlib_Lazy.res | 26 +++-------------- packages/@rescript/runtime/Stdlib_List.res | 26 +++-------------- packages/@rescript/runtime/Stdlib_List.resi | 26 +++-------------- packages/@rescript/runtime/Stdlib_Math.resi | 24 ++------------- packages/@rescript/runtime/Stdlib_Option.res | 26 +++-------------- packages/@rescript/runtime/Stdlib_Option.resi | 26 +++-------------- packages/@rescript/runtime/Stdlib_Result.res | 26 +++-------------- packages/@rescript/runtime/Stdlib_Result.resi | 26 +++-------------- packages/@rescript/runtime/Stdlib_String.resi | 24 ++------------- packages/@rescript/runtime/package.json | 1 + packages/@rescript/win32-x64/package.json | 1 + 133 files changed, 484 insertions(+), 2588 deletions(-) rename compiler/syntax/LICENSE => LICENSE.MIT (91%) diff --git a/LICENSE b/LICENSE index 192c7489d1f..7e23f6d0089 100644 --- a/LICENSE +++ b/LICENSE @@ -1,24 +1,11 @@ -Copyright (C) 2015-2016 Bloomberg Finance L.P. -Copyright (C) 2017- Hongbo Zhang, Authors of ReScript +This repository contains code under multiple licenses. -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU Lesser General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +- compiler/: LGPL-3.0-or-later +- compiler/syntax/: MIT +- packages/@rescript/runtime/: MIT +- rewatch/: MIT -In addition to the permissions granted to you by the LGPL, you may combine -or link a "work that uses the Library" with a publicly distributed version -of this file to produce a combined library or application, then distribute -that combined work under the terms of your choosing, with no requirement -to comply with the obligations normally placed on you by section 4 of the -LGPL version 3 (or the corresponding section of a later version of the LGPL -should you choose to use a later version). +See full license texts: -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Lesser General Public License for more details. - -You should have received a copy of the GNU Lesser General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +- LGPL-3.0-or-later: COPYING.LESSER (and COPYING where applicable) +- MIT: LICENSE.MIT diff --git a/compiler/syntax/LICENSE b/LICENSE.MIT similarity index 91% rename from compiler/syntax/LICENSE rename to LICENSE.MIT index 51eda118f40..921ad7b6026 100644 --- a/compiler/syntax/LICENSE +++ b/LICENSE.MIT @@ -1,6 +1,7 @@ MIT License -Copyright (c) 2020 - Authors of ReScript +Copyright (c) 2015-2016 Bloomberg Finance L.P. +Copyright (c) 2017- Hongbo Zhang, Authors of ReScript Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 3f54f22aec1..ab1707880ea 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

Current npm package version. Current Github Actions workflow status. - ReScript is released under the LGPL license. + ReScript uses both LGPL and MIT licenses. Follow @rescriptlang on X Follow @rescriptlang on Bluesky

@@ -92,9 +92,14 @@ For discussions on ongoing development, see the [Development](https://forum.resc ## 📄 License -ReScript is licensed under LGPL version 3, with relaxed rules about creating and distributing combined work. See the [LICENSE](LICENSE) file for details. +ReScript uses multiple licenses in this monorepo: -The ReScript parser (subdirectory `compiler/syntax`) is licensed under the [MIT License](compiler/syntax/LICENSE). +- `compiler/`: LGPL-3.0-or-later +- `compiler/syntax/`: MIT +- `packages/@rescript/runtime/`: MIT +- `rewatch/`: MIT + +See the repository license index in [`LICENSE`](LICENSE) and full license texts in [`COPYING.LESSER`](COPYING.LESSER) and [`LICENSE.MIT`](LICENSE.MIT). The `ninja` subdirectory contains the vendored [ninja](https://github.com/ninja-build/ninja) build system. Refer to its copyright and license notices for information about its licensing. diff --git a/package.json b/package.json index d3853b89232..9b30ba533cf 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "JavaScript", "Language" ], - "license": "SEE LICENSE IN LICENSE", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/darwin-arm64/package.json b/packages/@rescript/darwin-arm64/package.json index 09f3ca74871..4eb1971ad21 100644 --- a/packages/@rescript/darwin-arm64/package.json +++ b/packages/@rescript/darwin-arm64/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript binaries for MacOS ARM64", "type": "module", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/darwin-x64/package.json b/packages/@rescript/darwin-x64/package.json index c1843722c8e..c300d7256c4 100644 --- a/packages/@rescript/darwin-x64/package.json +++ b/packages/@rescript/darwin-x64/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript binaries for MacOS x86_64", "type": "module", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/linux-arm64/package.json b/packages/@rescript/linux-arm64/package.json index 6a55841ecac..d1deabdfc8b 100644 --- a/packages/@rescript/linux-arm64/package.json +++ b/packages/@rescript/linux-arm64/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript binaries for Linux ARM64", "type": "module", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/linux-x64/package.json b/packages/@rescript/linux-x64/package.json index fe730c5a6e6..caa20733364 100644 --- a/packages/@rescript/linux-x64/package.json +++ b/packages/@rescript/linux-x64/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript binaries for Linux x86_64", "type": "module", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/runtime/Belt.res b/packages/@rescript/runtime/Belt.res index 4845669371b..c65ed18dfca 100644 --- a/packages/@rescript/runtime/Belt.res +++ b/packages/@rescript/runtime/Belt.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** The ReScript standard library. diff --git a/packages/@rescript/runtime/Belt_Array.res b/packages/@rescript/runtime/Belt_Array.res index 9c1025e1dd0..ea7c76a86c6 100644 --- a/packages/@rescript/runtime/Belt_Array.res +++ b/packages/@rescript/runtime/Belt_Array.res @@ -1,15 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /* Array operations */ type t<'a> = array<'a> diff --git a/packages/@rescript/runtime/Belt_Array.resi b/packages/@rescript/runtime/Belt_Array.resi index 11aac20e0cd..1e7969046aa 100644 --- a/packages/@rescript/runtime/Belt_Array.resi +++ b/packages/@rescript/runtime/Belt_Array.resi @@ -1,16 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ -/* Adapted significantly by Authors of ReScript */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /*** Utilities for `Array` functions. diff --git a/packages/@rescript/runtime/Belt_Float.res b/packages/@rescript/runtime/Belt_Float.res index a30e295044f..df650b937c8 100644 --- a/packages/@rescript/runtime/Belt_Float.res +++ b/packages/@rescript/runtime/Belt_Float.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** [`Belt.Float`]() Utilities for Float diff --git a/packages/@rescript/runtime/Belt_Float.resi b/packages/@rescript/runtime/Belt_Float.resi index 8b225a6c473..f604ae6d8f2 100644 --- a/packages/@rescript/runtime/Belt_Float.resi +++ b/packages/@rescript/runtime/Belt_Float.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module includes convenience methods for handling `float` types. */ diff --git a/packages/@rescript/runtime/Belt_HashMap.res b/packages/@rescript/runtime/Belt_HashMap.res index bb85ab32841..5503e3bd495 100644 --- a/packages/@rescript/runtime/Belt_HashMap.res +++ b/packages/@rescript/runtime/Belt_HashMap.res @@ -1,16 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* Adapted by Hongbo Zhang, Authors of ReScript 2017 */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ module N = Belt_internalBuckets module C = Belt_internalBucketsType diff --git a/packages/@rescript/runtime/Belt_HashMap.resi b/packages/@rescript/runtime/Belt_HashMap.resi index d06511ae76b..3a9c3a88982 100644 --- a/packages/@rescript/runtime/Belt_HashMap.resi +++ b/packages/@rescript/runtime/Belt_HashMap.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** A **mutable** Hash map which allows customized [`hash`]() behavior. diff --git a/packages/@rescript/runtime/Belt_HashMapInt.res b/packages/@rescript/runtime/Belt_HashMapInt.res index 8cb478f59f7..d035e786ef0 100644 --- a/packages/@rescript/runtime/Belt_HashMapInt.res +++ b/packages/@rescript/runtime/Belt_HashMapInt.res @@ -1,15 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /* Adapted by Hongbo Zhang, Authors of ReScript 2017 */ diff --git a/packages/@rescript/runtime/Belt_HashMapString.res b/packages/@rescript/runtime/Belt_HashMapString.res index 5e36735e14f..aa6900e1c3a 100644 --- a/packages/@rescript/runtime/Belt_HashMapString.res +++ b/packages/@rescript/runtime/Belt_HashMapString.res @@ -1,15 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /* Adapted by Hongbo Zhang, Authors of ReScript 2017 */ diff --git a/packages/@rescript/runtime/Belt_HashSet.res b/packages/@rescript/runtime/Belt_HashSet.res index 729ca2c5a95..5be753c4b70 100644 --- a/packages/@rescript/runtime/Belt_HashSet.res +++ b/packages/@rescript/runtime/Belt_HashSet.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_HashSetInt diff --git a/packages/@rescript/runtime/Belt_HashSet.resi b/packages/@rescript/runtime/Belt_HashSet.resi index 5261290148e..d281f820249 100644 --- a/packages/@rescript/runtime/Belt_HashSet.resi +++ b/packages/@rescript/runtime/Belt_HashSet.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** A **mutable** Hash set which allows customized `hash` behavior. diff --git a/packages/@rescript/runtime/Belt_HashSetInt.resi b/packages/@rescript/runtime/Belt_HashSetInt.resi index edf26dd4464..8c04f80819d 100644 --- a/packages/@rescript/runtime/Belt_HashSetInt.resi +++ b/packages/@rescript/runtime/Belt_HashSetInt.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.HashSet`]() specialized with key type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_HashSetString.resi b/packages/@rescript/runtime/Belt_HashSetString.resi index 3e3212b41a7..1418dbebd34 100644 --- a/packages/@rescript/runtime/Belt_HashSetString.resi +++ b/packages/@rescript/runtime/Belt_HashSetString.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.HashSet`]() specialized with key type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_Id.res b/packages/@rescript/runtime/Belt_Id.res index 01f2a84a994..2f7a44e3cff 100644 --- a/packages/@rescript/runtime/Belt_Id.res +++ b/packages/@rescript/runtime/Belt_Id.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type hash<'a, 'id> = 'a => int type eq<'a, 'id> = ('a, 'a) => bool diff --git a/packages/@rescript/runtime/Belt_Id.resi b/packages/@rescript/runtime/Belt_Id.resi index 1da64ea212f..58cb98b6178 100644 --- a/packages/@rescript/runtime/Belt_Id.resi +++ b/packages/@rescript/runtime/Belt_Id.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** [`Belt.Id`]() diff --git a/packages/@rescript/runtime/Belt_Int.res b/packages/@rescript/runtime/Belt_Int.res index fdf14235eb3..177aae00397 100644 --- a/packages/@rescript/runtime/Belt_Int.res +++ b/packages/@rescript/runtime/Belt_Int.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** [`Belt.Int`]() Utilities for Int diff --git a/packages/@rescript/runtime/Belt_Int.resi b/packages/@rescript/runtime/Belt_Int.resi index 11e0f599f3a..25415e36e31 100644 --- a/packages/@rescript/runtime/Belt_Int.resi +++ b/packages/@rescript/runtime/Belt_Int.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module includes convenience methods for handling `int` types. diff --git a/packages/@rescript/runtime/Belt_List.res b/packages/@rescript/runtime/Belt_List.res index 74f4e2d3d0c..0fbc5c2b935 100644 --- a/packages/@rescript/runtime/Belt_List.res +++ b/packages/@rescript/runtime/Belt_List.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /* perf is not everything, there are better memory represenations diff --git a/packages/@rescript/runtime/Belt_List.resi b/packages/@rescript/runtime/Belt_List.resi index fabab345ecf..80b3d8303d1 100644 --- a/packages/@rescript/runtime/Belt_List.resi +++ b/packages/@rescript/runtime/Belt_List.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Collection functions for manipulating the `list` data structures, a singly-linked list. diff --git a/packages/@rescript/runtime/Belt_Map.res b/packages/@rescript/runtime/Belt_Map.res index 697e47efae7..2840a2e8b23 100644 --- a/packages/@rescript/runtime/Belt_Map.res +++ b/packages/@rescript/runtime/Belt_Map.res @@ -1,16 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* Adapted by authors of ReScript without using functors */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /** specalized when key type is `int`, more efficient than the generic type diff --git a/packages/@rescript/runtime/Belt_Map.resi b/packages/@rescript/runtime/Belt_Map.resi index f35a589ebdf..fc883223906 100644 --- a/packages/@rescript/runtime/Belt_Map.resi +++ b/packages/@rescript/runtime/Belt_Map.resi @@ -1,16 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* Adapted by authors of ReScript without using functors */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /*** The top level provides generic immutable map operations. diff --git a/packages/@rescript/runtime/Belt_MapDict.res b/packages/@rescript/runtime/Belt_MapDict.res index 0190b4b3111..1a751264fab 100644 --- a/packages/@rescript/runtime/Belt_MapDict.res +++ b/packages/@rescript/runtime/Belt_MapDict.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module N = Belt_internalAVLtree module A = Belt_Array diff --git a/packages/@rescript/runtime/Belt_MapDict.resi b/packages/@rescript/runtime/Belt_MapDict.resi index 8866d1146b1..cfff7c39754 100644 --- a/packages/@rescript/runtime/Belt_MapDict.resi +++ b/packages/@rescript/runtime/Belt_MapDict.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module separates identity from data, it is a bit more verbose but diff --git a/packages/@rescript/runtime/Belt_MutableMap.res b/packages/@rescript/runtime/Belt_MutableMap.res index 2b10a40e7dd..87779759dce 100644 --- a/packages/@rescript/runtime/Belt_MutableMap.res +++ b/packages/@rescript/runtime/Belt_MutableMap.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_MutableMapInt module String = Belt_MutableMapString diff --git a/packages/@rescript/runtime/Belt_MutableMap.resi b/packages/@rescript/runtime/Belt_MutableMap.resi index 58d15ac4a59..598d587a793 100644 --- a/packages/@rescript/runtime/Belt_MutableMap.resi +++ b/packages/@rescript/runtime/Belt_MutableMap.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_MutableMapInt diff --git a/packages/@rescript/runtime/Belt_MutableMapInt.resi b/packages/@rescript/runtime/Belt_MutableMapInt.resi index 18137699105..a1b5acccb93 100644 --- a/packages/@rescript/runtime/Belt_MutableMapInt.resi +++ b/packages/@rescript/runtime/Belt_MutableMapInt.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type key = int diff --git a/packages/@rescript/runtime/Belt_MutableMapString.resi b/packages/@rescript/runtime/Belt_MutableMapString.resi index 2a5b955ffd5..9f47a23d3fd 100644 --- a/packages/@rescript/runtime/Belt_MutableMapString.resi +++ b/packages/@rescript/runtime/Belt_MutableMapString.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type key = string diff --git a/packages/@rescript/runtime/Belt_MutableQueue.res b/packages/@rescript/runtime/Belt_MutableQueue.res index 61b60ae4616..6ed8a1763a5 100644 --- a/packages/@rescript/runtime/Belt_MutableQueue.res +++ b/packages/@rescript/runtime/Belt_MutableQueue.res @@ -1,19 +1,9 @@ -/* ************************************************************************ */ -/* */ -/* OCaml */ -/* */ -/* Francois Pottier, projet Cristal, INRIA Rocquencourt */ -/* Jeremie Dimino, Jane Street Europe */ -/* */ -/* Copyright 2002 Institut National de Recherche en Informatique et */ -/* en Automatique. */ -/* */ -/* All rights reserved. This file is distributed under the terms of */ -/* the GNU Lesser General Public License version 2.1, with the */ -/* special exception on linking described in the file LICENSE. */ -/* */ -/* ************************************************************************ */ -/* Adapted significantly by ReScript Authors */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ + module A = Belt_Array type rec node<'a> = { diff --git a/packages/@rescript/runtime/Belt_MutableQueue.resi b/packages/@rescript/runtime/Belt_MutableQueue.resi index 515d6b40f7f..ef4e542fbaa 100644 --- a/packages/@rescript/runtime/Belt_MutableQueue.resi +++ b/packages/@rescript/runtime/Belt_MutableQueue.resi @@ -1,18 +1,8 @@ -/* ************************************************************************ */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. */ -/* */ -/* All rights reserved. This file is distributed under the terms of */ -/* the GNU Lesser General Public License version 2.1, with the */ -/* special exception on linking described in the file LICENSE. */ -/* */ -/* ************************************************************************ */ -/* Adapted significantly by ReScript Authors */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /*** A FIFO (first in first out) queue data structure. diff --git a/packages/@rescript/runtime/Belt_MutableSet.res b/packages/@rescript/runtime/Belt_MutableSet.res index 5b1af51f9c8..c2c54b5e103 100644 --- a/packages/@rescript/runtime/Belt_MutableSet.res +++ b/packages/@rescript/runtime/Belt_MutableSet.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_MutableSetInt module String = Belt_MutableSetString diff --git a/packages/@rescript/runtime/Belt_MutableSet.resi b/packages/@rescript/runtime/Belt_MutableSet.resi index 6c5c4254b31..19b1555677a 100644 --- a/packages/@rescript/runtime/Belt_MutableSet.resi +++ b/packages/@rescript/runtime/Belt_MutableSet.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** A **mutable** sorted set module which allows customized compare behavior. diff --git a/packages/@rescript/runtime/Belt_MutableSetInt.res b/packages/@rescript/runtime/Belt_MutableSetInt.res index 3bceb489a2d..447c5bad7fc 100644 --- a/packages/@rescript/runtime/Belt_MutableSetInt.res +++ b/packages/@rescript/runtime/Belt_MutableSetInt.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.MutableSet`]() specialized with key type to be a primitive type. It is more efficient in general, the API is the same with [`Belt_MutableSet`]() except its key type is fixed, diff --git a/packages/@rescript/runtime/Belt_MutableSetInt.resi b/packages/@rescript/runtime/Belt_MutableSetInt.resi index 54cb3d7bdd9..e6c5c81bcf9 100644 --- a/packages/@rescript/runtime/Belt_MutableSetInt.resi +++ b/packages/@rescript/runtime/Belt_MutableSetInt.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.MutableSet`]() specialized with key type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_MutableSetString.res b/packages/@rescript/runtime/Belt_MutableSetString.res index 454d3244b42..8e9129413d7 100644 --- a/packages/@rescript/runtime/Belt_MutableSetString.res +++ b/packages/@rescript/runtime/Belt_MutableSetString.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.MutableSet`]() specialized with key type to be a primitive type. It is more efficient in general, the API is the same with [`Belt_MutableSet`]() except its key type is fixed, diff --git a/packages/@rescript/runtime/Belt_MutableSetString.resi b/packages/@rescript/runtime/Belt_MutableSetString.resi index d232c3a6481..341385e2d43 100644 --- a/packages/@rescript/runtime/Belt_MutableSetString.resi +++ b/packages/@rescript/runtime/Belt_MutableSetString.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.MutableSet`]() specialized with key type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_MutableStack.res b/packages/@rescript/runtime/Belt_MutableStack.res index 9e848f24a5b..a9a3b815a05 100644 --- a/packages/@rescript/runtime/Belt_MutableStack.res +++ b/packages/@rescript/runtime/Belt_MutableStack.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type rec t<'a> = {mutable root: opt_cell<'a>} and opt_cell<'a> = option> diff --git a/packages/@rescript/runtime/Belt_MutableStack.resi b/packages/@rescript/runtime/Belt_MutableStack.resi index c2b34cde6a6..7fbaae07ee4 100644 --- a/packages/@rescript/runtime/Belt_MutableStack.resi +++ b/packages/@rescript/runtime/Belt_MutableStack.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** First in last out stack. This module implements stacks, with in-place diff --git a/packages/@rescript/runtime/Belt_Option.res b/packages/@rescript/runtime/Belt_Option.res index 618df9dfadb..3c155b5055e 100644 --- a/packages/@rescript/runtime/Belt_Option.res +++ b/packages/@rescript/runtime/Belt_Option.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ let keep = (opt, p) => switch opt { diff --git a/packages/@rescript/runtime/Belt_Option.resi b/packages/@rescript/runtime/Belt_Option.resi index d1c9ca209c7..67bb245793b 100644 --- a/packages/@rescript/runtime/Belt_Option.resi +++ b/packages/@rescript/runtime/Belt_Option.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** In Belt we represent the existence and nonexistence of a value by wrapping it diff --git a/packages/@rescript/runtime/Belt_Range.res b/packages/@rescript/runtime/Belt_Range.res index 341c29f0036..cb9add0d40d 100644 --- a/packages/@rescript/runtime/Belt_Range.res +++ b/packages/@rescript/runtime/Belt_Range.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ let forEach = (s, f, action) => for i in s to f { diff --git a/packages/@rescript/runtime/Belt_Range.resi b/packages/@rescript/runtime/Belt_Range.resi index d68393e5426..84b6a4b1e23 100644 --- a/packages/@rescript/runtime/Belt_Range.resi +++ b/packages/@rescript/runtime/Belt_Range.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** A small utility module to provide inclusive range operations for `[start, finish]`. diff --git a/packages/@rescript/runtime/Belt_Result.res b/packages/@rescript/runtime/Belt_Result.res index d2512b2102b..23bbbfa4d8b 100644 --- a/packages/@rescript/runtime/Belt_Result.res +++ b/packages/@rescript/runtime/Belt_Result.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t<'a, 'b> = result<'a, 'b> = | Ok('a) diff --git a/packages/@rescript/runtime/Belt_Result.resi b/packages/@rescript/runtime/Belt_Result.resi index bed815fabc6..71b9c64cb59 100644 --- a/packages/@rescript/runtime/Belt_Result.resi +++ b/packages/@rescript/runtime/Belt_Result.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Result types are really useful to describe the result of a certain operation diff --git a/packages/@rescript/runtime/Belt_Set.res b/packages/@rescript/runtime/Belt_Set.res index 5e5b87d2d40..0ff9f314882 100644 --- a/packages/@rescript/runtime/Belt_Set.res +++ b/packages/@rescript/runtime/Belt_Set.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_SetInt module String = Belt_SetString diff --git a/packages/@rescript/runtime/Belt_Set.resi b/packages/@rescript/runtime/Belt_Set.resi index 1d55893a32c..352592f92c0 100644 --- a/packages/@rescript/runtime/Belt_Set.resi +++ b/packages/@rescript/runtime/Belt_Set.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** An _immutable_ sorted set module which allows customized _compare_ behavior. diff --git a/packages/@rescript/runtime/Belt_SetDict.res b/packages/@rescript/runtime/Belt_SetDict.res index f272763a765..c3ad5002c5b 100644 --- a/packages/@rescript/runtime/Belt_SetDict.res +++ b/packages/@rescript/runtime/Belt_SetDict.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module N = Belt_internalAVLset module A = Belt_Array diff --git a/packages/@rescript/runtime/Belt_SetDict.resi b/packages/@rescript/runtime/Belt_SetDict.resi index ec7dbd5d812..ce83362a7c7 100644 --- a/packages/@rescript/runtime/Belt_SetDict.resi +++ b/packages/@rescript/runtime/Belt_SetDict.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module separates identity from data. It is a bit more verbose but slightly diff --git a/packages/@rescript/runtime/Belt_SetInt.resi b/packages/@rescript/runtime/Belt_SetInt.resi index 5fd14dfe27d..29d4fb5f839 100644 --- a/packages/@rescript/runtime/Belt_SetInt.resi +++ b/packages/@rescript/runtime/Belt_SetInt.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.Set`]() specialized with value type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_SetString.resi b/packages/@rescript/runtime/Belt_SetString.resi index 81a8719af6a..f6ab842f0c9 100644 --- a/packages/@rescript/runtime/Belt_SetString.resi +++ b/packages/@rescript/runtime/Belt_SetString.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This module is [`Belt.Set`]() specialized with value type to be a primitive type. diff --git a/packages/@rescript/runtime/Belt_SortArray.res b/packages/@rescript/runtime/Belt_SortArray.res index 3e329140191..7ff3c942004 100644 --- a/packages/@rescript/runtime/Belt_SortArray.res +++ b/packages/@rescript/runtime/Belt_SortArray.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Int = Belt_SortArrayInt diff --git a/packages/@rescript/runtime/Belt_SortArray.resi b/packages/@rescript/runtime/Belt_SortArray.resi index 372a225a68d..6830a246682 100644 --- a/packages/@rescript/runtime/Belt_SortArray.resi +++ b/packages/@rescript/runtime/Belt_SortArray.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** A module for Array sort relevant utiliites diff --git a/packages/@rescript/runtime/Belt_SortArrayInt.resi b/packages/@rescript/runtime/Belt_SortArrayInt.resi index ce1c48c6f11..f2e20c465df 100644 --- a/packages/@rescript/runtime/Belt_SortArrayInt.resi +++ b/packages/@rescript/runtime/Belt_SortArrayInt.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This is a specialized module for [`Belt_SortArray`](), the docs in that module also diff --git a/packages/@rescript/runtime/Belt_SortArrayString.resi b/packages/@rescript/runtime/Belt_SortArrayString.resi index 3742ce22291..e3b877e1f1d 100644 --- a/packages/@rescript/runtime/Belt_SortArrayString.resi +++ b/packages/@rescript/runtime/Belt_SortArrayString.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** This is a specialized module for [`Belt_SortArray`](), the docs in that module also diff --git a/packages/@rescript/runtime/Belt_internalAVLset.res b/packages/@rescript/runtime/Belt_internalAVLset.res index b823ee585df..0830ed6addc 100644 --- a/packages/@rescript/runtime/Belt_internalAVLset.res +++ b/packages/@rescript/runtime/Belt_internalAVLset.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @@config({flags: ["-bs-noassertfalse"]}) type rec node<'value> = { @as("v") mutable value: 'value, diff --git a/packages/@rescript/runtime/Belt_internalAVLset.resi b/packages/@rescript/runtime/Belt_internalAVLset.resi index cb3b3e427e5..5606c32da7a 100644 --- a/packages/@rescript/runtime/Belt_internalAVLset.resi +++ b/packages/@rescript/runtime/Belt_internalAVLset.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /* This internal module contains methods which does not rely on ordering. diff --git a/packages/@rescript/runtime/Belt_internalAVLtree.res b/packages/@rescript/runtime/Belt_internalAVLtree.res index 43455a3efac..5bd2b63ef8d 100644 --- a/packages/@rescript/runtime/Belt_internalAVLtree.res +++ b/packages/@rescript/runtime/Belt_internalAVLtree.res @@ -1,15 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /* Almost rewritten by authors of ReScript */ diff --git a/packages/@rescript/runtime/Belt_internalAVLtree.resi b/packages/@rescript/runtime/Belt_internalAVLtree.resi index 432b987df87..614ff1fd7d2 100644 --- a/packages/@rescript/runtime/Belt_internalAVLtree.resi +++ b/packages/@rescript/runtime/Belt_internalAVLtree.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type rec t<'key, 'a> = option> diff --git a/packages/@rescript/runtime/Belt_internalBuckets.res b/packages/@rescript/runtime/Belt_internalBuckets.res index d58b4558ca0..ff9ed2cbcf5 100644 --- a/packages/@rescript/runtime/Belt_internalBuckets.res +++ b/packages/@rescript/runtime/Belt_internalBuckets.res @@ -1,15 +1,8 @@ -/* ********************************************************************* */ -/* */ -/* OCaml */ -/* */ -/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ -/* */ -/* Copyright 1996 Institut National de Recherche en Informatique et */ -/* en Automatique. All rights reserved. This file is distributed */ -/* under the terms of the GNU Library General Public License, with */ -/* the special exception on linking described in file ../LICENSE. */ -/* */ -/* ********************************************************************* */ +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript + * + * SPDX-License-Identifier: MIT + */ /* Adapted by Hongbo Zhang, Authors of ReScript 2017 */ diff --git a/packages/@rescript/runtime/Belt_internalBuckets.resi b/packages/@rescript/runtime/Belt_internalBuckets.resi index 750d488efc3..a4c114294b8 100644 --- a/packages/@rescript/runtime/Belt_internalBuckets.resi +++ b/packages/@rescript/runtime/Belt_internalBuckets.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module C = Belt_internalBucketsType diff --git a/packages/@rescript/runtime/Belt_internalBucketsType.res b/packages/@rescript/runtime/Belt_internalBucketsType.res index 73bc6027190..767194259e7 100644 --- a/packages/@rescript/runtime/Belt_internalBucketsType.res +++ b/packages/@rescript/runtime/Belt_internalBucketsType.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type opt<'a> = Js.undefined<'a> type container<'hash, 'eq, 'c> = { diff --git a/packages/@rescript/runtime/Belt_internalBucketsType.resi b/packages/@rescript/runtime/Belt_internalBucketsType.resi index 71498b86c90..00beacf052a 100644 --- a/packages/@rescript/runtime/Belt_internalBucketsType.resi +++ b/packages/@rescript/runtime/Belt_internalBucketsType.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type opt<'a> = Js.undefined<'a> type container<'hash, 'eq, 'c> = { diff --git a/packages/@rescript/runtime/Belt_internalSetBuckets.res b/packages/@rescript/runtime/Belt_internalSetBuckets.res index 4e50678df6a..e5dde3fa056 100644 --- a/packages/@rescript/runtime/Belt_internalSetBuckets.res +++ b/packages/@rescript/runtime/Belt_internalSetBuckets.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /* We do dynamic hashing, and resize the table and rehash the elements when buckets become too long. */ diff --git a/packages/@rescript/runtime/Belt_internalSetBuckets.resi b/packages/@rescript/runtime/Belt_internalSetBuckets.resi index 4167a030c0a..07c288f1076 100644 --- a/packages/@rescript/runtime/Belt_internalSetBuckets.resi +++ b/packages/@rescript/runtime/Belt_internalSetBuckets.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module C = Belt_internalBucketsType diff --git a/packages/@rescript/runtime/Js.res b/packages/@rescript/runtime/Js.res index d8e48dd7b5a..590547203a4 100644 --- a/packages/@rescript/runtime/Js.res +++ b/packages/@rescript/runtime/Js.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @@config({flags: ["-unboxed-types", "-w", "-49"]}) diff --git a/packages/@rescript/runtime/Js_OO.res b/packages/@rescript/runtime/Js_OO.res index aba40deefa5..521807eeb2e 100644 --- a/packages/@rescript/runtime/Js_OO.res +++ b/packages/@rescript/runtime/Js_OO.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2020- Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @@config({flags: ["-unboxed-types"]}) diff --git a/packages/@rescript/runtime/Js_array.res b/packages/@rescript/runtime/Js_array.res index b0fd70e5d56..93b2ff8458c 100644 --- a/packages/@rescript/runtime/Js_array.res +++ b/packages/@rescript/runtime/Js_array.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides bindings to JavaScript’s `Array` functions. These bindings are diff --git a/packages/@rescript/runtime/Js_array2.res b/packages/@rescript/runtime/Js_array2.res index 4688cebcd7b..4f0ac6133d3 100644 --- a/packages/@rescript/runtime/Js_array2.res +++ b/packages/@rescript/runtime/Js_array2.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides bindings to JavaScript’s `Array` functions. These bindings are optimized for pipe-first (`->`), where the array to be processed is the first parameter in the function. diff --git a/packages/@rescript/runtime/Js_date.res b/packages/@rescript/runtime/Js_date.res index 50a7c23f572..3235e2820f0 100644 --- a/packages/@rescript/runtime/Js_date.res +++ b/packages/@rescript/runtime/Js_date.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide bindings to JS date. (See diff --git a/packages/@rescript/runtime/Js_dict.res b/packages/@rescript/runtime/Js_dict.res index af8cb2d7621..267d09222d8 100644 --- a/packages/@rescript/runtime/Js_dict.res +++ b/packages/@rescript/runtime/Js_dict.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides a simple key-value dictionary abstraction over native JavaScript objects */ diff --git a/packages/@rescript/runtime/Js_dict.resi b/packages/@rescript/runtime/Js_dict.resi index 9f0eb68c72d..9a1e17293f4 100644 --- a/packages/@rescript/runtime/Js_dict.resi +++ b/packages/@rescript/runtime/Js_dict.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for JS dictionary object. diff --git a/packages/@rescript/runtime/Js_float.res b/packages/@rescript/runtime/Js_float.res index e4416ad1e4d..68ace29372f 100644 --- a/packages/@rescript/runtime/Js_float.res +++ b/packages/@rescript/runtime/Js_float.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for JS float. diff --git a/packages/@rescript/runtime/Js_global.res b/packages/@rescript/runtime/Js_global.res index 6fee58a0245..e28b8041198 100644 --- a/packages/@rescript/runtime/Js_global.res +++ b/packages/@rescript/runtime/Js_global.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Contains functions available in the global scope (`window` in a browser context) diff --git a/packages/@rescript/runtime/Js_int.res b/packages/@rescript/runtime/Js_int.res index 0cf4807c9d4..a27ad6c9353 100644 --- a/packages/@rescript/runtime/Js_int.res +++ b/packages/@rescript/runtime/Js_int.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for handling `int`. diff --git a/packages/@rescript/runtime/Js_json.res b/packages/@rescript/runtime/Js_json.res index 381755ac3cd..7a000e18653 100644 --- a/packages/@rescript/runtime/Js_json.res +++ b/packages/@rescript/runtime/Js_json.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Efficient JSON encoding using JavaScript API */ diff --git a/packages/@rescript/runtime/Js_json.resi b/packages/@rescript/runtime/Js_json.resi index bb68773fd16..bcd55d913e3 100644 --- a/packages/@rescript/runtime/Js_json.resi +++ b/packages/@rescript/runtime/Js_json.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Efficient JSON encoding using JavaScript API diff --git a/packages/@rescript/runtime/Js_math.res b/packages/@rescript/runtime/Js_math.res index aadec6db3d7..2e1bb48ab53 100644 --- a/packages/@rescript/runtime/Js_math.res +++ b/packages/@rescript/runtime/Js_math.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for JS Math. Note: The constants `_E`, `_LN10`, `_LN2`, diff --git a/packages/@rescript/runtime/Js_null.res b/packages/@rescript/runtime/Js_null.res index 927759fb82a..0229044197f 100644 --- a/packages/@rescript/runtime/Js_null.res +++ b/packages/@rescript/runtime/Js_null.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides functionality for dealing with the `'a Js.null` type */ diff --git a/packages/@rescript/runtime/Js_null.resi b/packages/@rescript/runtime/Js_null.resi index 765f5104ff4..8dcc5e52956 100644 --- a/packages/@rescript/runtime/Js_null.resi +++ b/packages/@rescript/runtime/Js_null.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides functionality for dealing with the `Js.null<'a>` type */ diff --git a/packages/@rescript/runtime/Js_null_undefined.res b/packages/@rescript/runtime/Js_null_undefined.res index 084106bea72..1099e69dfe9 100644 --- a/packages/@rescript/runtime/Js_null_undefined.res +++ b/packages/@rescript/runtime/Js_null_undefined.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Contains functionality for dealing with values that can be both `null` and `undefined` */ diff --git a/packages/@rescript/runtime/Js_null_undefined.resi b/packages/@rescript/runtime/Js_null_undefined.resi index 9b434331f76..72dae441aa4 100644 --- a/packages/@rescript/runtime/Js_null_undefined.resi +++ b/packages/@rescript/runtime/Js_null_undefined.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Contains functionality for dealing with values that can be both `null` and `undefined` diff --git a/packages/@rescript/runtime/Js_obj.res b/packages/@rescript/runtime/Js_obj.res index e42c663d6e2..7c8e6e0b0b8 100644 --- a/packages/@rescript/runtime/Js_obj.res +++ b/packages/@rescript/runtime/Js_obj.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides functions for inspecting and manipulating native JavaScript objects diff --git a/packages/@rescript/runtime/Js_option.res b/packages/@rescript/runtime/Js_option.res index 495a52c07b6..944885fd19e 100644 --- a/packages/@rescript/runtime/Js_option.res +++ b/packages/@rescript/runtime/Js_option.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for handling `option`. */ diff --git a/packages/@rescript/runtime/Js_option.resi b/packages/@rescript/runtime/Js_option.resi index 1dd6765b2cf..f60b80307c7 100644 --- a/packages/@rescript/runtime/Js_option.resi +++ b/packages/@rescript/runtime/Js_option.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @deprecated({ reason: "Use `option` directly instead.", diff --git a/packages/@rescript/runtime/Js_promise.res b/packages/@rescript/runtime/Js_promise.res index a4e7635fa46..5636e3fb80f 100644 --- a/packages/@rescript/runtime/Js_promise.res +++ b/packages/@rescript/runtime/Js_promise.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Deprecation note: These bindings are pretty outdated and cannot be used properly diff --git a/packages/@rescript/runtime/Js_promise.resi b/packages/@rescript/runtime/Js_promise.resi index 79a1c972ea2..56847a3bf87 100644 --- a/packages/@rescript/runtime/Js_promise.resi +++ b/packages/@rescript/runtime/Js_promise.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Deprecation note: These bindings are pretty outdated and cannot be used properly diff --git a/packages/@rescript/runtime/Js_re.res b/packages/@rescript/runtime/Js_re.res index b275c56ddf2..7574f12d4b3 100644 --- a/packages/@rescript/runtime/Js_re.res +++ b/packages/@rescript/runtime/Js_re.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide bindings to JS regular expressions (RegExp). diff --git a/packages/@rescript/runtime/Js_result.res b/packages/@rescript/runtime/Js_result.res index 3b65dff42b0..56dd7e7f127 100644 --- a/packages/@rescript/runtime/Js_result.res +++ b/packages/@rescript/runtime/Js_result.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @deprecated({ reason: "Use `result` directly instead", diff --git a/packages/@rescript/runtime/Js_result.resi b/packages/@rescript/runtime/Js_result.resi index 740fdc149c4..f072d001699 100644 --- a/packages/@rescript/runtime/Js_result.resi +++ b/packages/@rescript/runtime/Js_result.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @deprecated({ reason: "Use `result` directly instead.", diff --git a/packages/@rescript/runtime/Js_string.res b/packages/@rescript/runtime/Js_string.res index d0d0bc27a8a..ef8964768bf 100644 --- a/packages/@rescript/runtime/Js_string.res +++ b/packages/@rescript/runtime/Js_string.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** JavaScript String API */ diff --git a/packages/@rescript/runtime/Js_string2.res b/packages/@rescript/runtime/Js_string2.res index 3fbdda4f9f4..9b97ce91d90 100644 --- a/packages/@rescript/runtime/Js_string2.res +++ b/packages/@rescript/runtime/Js_string2.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide bindings to JS string. Optimized for pipe-first. */ diff --git a/packages/@rescript/runtime/Js_typed_array.res b/packages/@rescript/runtime/Js_typed_array.res index c0a595ea745..9981d7f6788 100644 --- a/packages/@rescript/runtime/Js_typed_array.res +++ b/packages/@rescript/runtime/Js_typed_array.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** JavaScript Typed Array API diff --git a/packages/@rescript/runtime/Js_typed_array2.res b/packages/@rescript/runtime/Js_typed_array2.res index 6093ecf0cf1..498092edd11 100644 --- a/packages/@rescript/runtime/Js_typed_array2.res +++ b/packages/@rescript/runtime/Js_typed_array2.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** JavaScript Typed Array API diff --git a/packages/@rescript/runtime/Js_types.res b/packages/@rescript/runtime/Js_types.res index bd9c0943f0c..8f3d0130306 100644 --- a/packages/@rescript/runtime/Js_types.res +++ b/packages/@rescript/runtime/Js_types.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /** Js symbol type only available in ES6 */ type symbol = Stdlib_Symbol.t diff --git a/packages/@rescript/runtime/Js_types.resi b/packages/@rescript/runtime/Js_types.resi index 1144a536184..a2d111d14fa 100644 --- a/packages/@rescript/runtime/Js_types.resi +++ b/packages/@rescript/runtime/Js_types.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for manipulating JS types. */ diff --git a/packages/@rescript/runtime/Js_undefined.res b/packages/@rescript/runtime/Js_undefined.res index a963856a581..e5300bd4871 100644 --- a/packages/@rescript/runtime/Js_undefined.res +++ b/packages/@rescript/runtime/Js_undefined.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides functionality for dealing with the `'a Js.undefined` type */ diff --git a/packages/@rescript/runtime/Js_undefined.resi b/packages/@rescript/runtime/Js_undefined.resi index b625fa89195..1af85331153 100644 --- a/packages/@rescript/runtime/Js_undefined.resi +++ b/packages/@rescript/runtime/Js_undefined.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provides functionality for dealing with the `Js.undefined<'a>` type */ diff --git a/packages/@rescript/runtime/Jsx.res b/packages/@rescript/runtime/Jsx.res index 7cc7ade95cb..ec62d61644a 100644 --- a/packages/@rescript/runtime/Jsx.res +++ b/packages/@rescript/runtime/Jsx.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2022- Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ @notUndefined type element diff --git a/packages/@rescript/runtime/JsxDOM.res b/packages/@rescript/runtime/JsxDOM.res index f1c3fbfdae4..33f1d474ebe 100644 --- a/packages/@rescript/runtime/JsxDOM.res +++ b/packages/@rescript/runtime/JsxDOM.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2022- Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type style = JsxDOMStyle.t type domRef diff --git a/packages/@rescript/runtime/JsxDOMStyle.res b/packages/@rescript/runtime/JsxDOMStyle.res index 388b4f3b47f..d41fe72b505 100644 --- a/packages/@rescript/runtime/JsxDOMStyle.res +++ b/packages/@rescript/runtime/JsxDOMStyle.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2022- Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t = { /** diff --git a/packages/@rescript/runtime/JsxEvent.res b/packages/@rescript/runtime/JsxEvent.res index 01bb2169e4b..2664d7b0ea6 100644 --- a/packages/@rescript/runtime/JsxEvent.res +++ b/packages/@rescript/runtime/JsxEvent.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type synthetic<'a> diff --git a/packages/@rescript/runtime/Primitive_curry.res b/packages/@rescript/runtime/Primitive_curry.res index 2f1dfc7e513..5d4ed8eb650 100644 --- a/packages/@rescript/runtime/Primitive_curry.res +++ b/packages/@rescript/runtime/Primitive_curry.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2015 - Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Array = Primitive_array_extern module Obj = Primitive_object_extern diff --git a/packages/@rescript/runtime/Primitive_exceptions.res b/packages/@rescript/runtime/Primitive_exceptions.res index 0f00317c5de..07e5c5e441c 100644 --- a/packages/@rescript/runtime/Primitive_exceptions.res +++ b/packages/@rescript/runtime/Primitive_exceptions.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2015- Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Obj = Primitive_object_extern module Js = Primitive_js_extern diff --git a/packages/@rescript/runtime/Primitive_hash.res b/packages/@rescript/runtime/Primitive_hash.res index 8cda31c7645..c99748909ad 100644 --- a/packages/@rescript/runtime/Primitive_hash.res +++ b/packages/@rescript/runtime/Primitive_hash.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Float = Primitive_float_extern module Obj = Primitive_object_extern diff --git a/packages/@rescript/runtime/Primitive_hash.resi b/packages/@rescript/runtime/Primitive_hash.resi index b2b66c3f010..0b0f18bc498 100644 --- a/packages/@rescript/runtime/Primitive_hash.resi +++ b/packages/@rescript/runtime/Primitive_hash.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2018 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ let hash_mix_int: (int, int) => int let hash_mix_string: (int, string) => int diff --git a/packages/@rescript/runtime/Primitive_object.res b/packages/@rescript/runtime/Primitive_object.res index 4c70770acf1..2973b283ad5 100644 --- a/packages/@rescript/runtime/Primitive_object.res +++ b/packages/@rescript/runtime/Primitive_object.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Array = Primitive_array_extern module Js = Primitive_js_extern diff --git a/packages/@rescript/runtime/Primitive_object.resi b/packages/@rescript/runtime/Primitive_object.resi index a7f4ea8d538..e64461b30bd 100644 --- a/packages/@rescript/runtime/Primitive_object.resi +++ b/packages/@rescript/runtime/Primitive_object.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t = Primitive_object_extern.t diff --git a/packages/@rescript/runtime/Primitive_option.res b/packages/@rescript/runtime/Primitive_option.res index 4850d7638b6..4912dce928a 100644 --- a/packages/@rescript/runtime/Primitive_option.res +++ b/packages/@rescript/runtime/Primitive_option.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ module Obj = Primitive_object_extern module Js = Primitive_js_extern diff --git a/packages/@rescript/runtime/Primitive_option.resi b/packages/@rescript/runtime/Primitive_option.resi index 0aaf2bd0762..b7522131f85 100644 --- a/packages/@rescript/runtime/Primitive_option.resi +++ b/packages/@rescript/runtime/Primitive_option.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type nested = {@as("BS_PRIVATE_NESTED_SOME_NONE") depth: int} diff --git a/packages/@rescript/runtime/Primitive_string_extern.res b/packages/@rescript/runtime/Primitive_string_extern.res index 4428679d9ee..a43251f2573 100644 --- a/packages/@rescript/runtime/Primitive_string_extern.res +++ b/packages/@rescript/runtime/Primitive_string_extern.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ external length: string => int = "%string_length" diff --git a/packages/@rescript/runtime/Stdlib_DataView.resi b/packages/@rescript/runtime/Stdlib_DataView.resi index 173cba3e61a..b557557c188 100644 --- a/packages/@rescript/runtime/Stdlib_DataView.resi +++ b/packages/@rescript/runtime/Stdlib_DataView.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2025- Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Functions for interacting with DataView. diff --git a/packages/@rescript/runtime/Stdlib_Exn.res b/packages/@rescript/runtime/Stdlib_Exn.res index ecb78572b3d..648cb9e072f 100644 --- a/packages/@rescript/runtime/Stdlib_Exn.res +++ b/packages/@rescript/runtime/Stdlib_Exn.res @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t = unknown diff --git a/packages/@rescript/runtime/Stdlib_Exn.resi b/packages/@rescript/runtime/Stdlib_Exn.resi index 0ad3a9744e2..5435507bc7b 100644 --- a/packages/@rescript/runtime/Stdlib_Exn.resi +++ b/packages/@rescript/runtime/Stdlib_Exn.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Provide utilities for dealing with JS exceptions. diff --git a/packages/@rescript/runtime/Stdlib_Float.resi b/packages/@rescript/runtime/Stdlib_Float.resi index 606a8616770..ed8c6490285 100644 --- a/packages/@rescript/runtime/Stdlib_Float.resi +++ b/packages/@rescript/runtime/Stdlib_Float.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Functions for interacting with float. diff --git a/packages/@rescript/runtime/Stdlib_Int.resi b/packages/@rescript/runtime/Stdlib_Int.resi index 72a2b9669d1..ae1c5a0ad5d 100644 --- a/packages/@rescript/runtime/Stdlib_Int.resi +++ b/packages/@rescript/runtime/Stdlib_Int.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Functions for interacting with JavaScript Number. diff --git a/packages/@rescript/runtime/Stdlib_Lazy.res b/packages/@rescript/runtime/Stdlib_Lazy.res index 681e5edc74f..5758a74f48f 100644 --- a/packages/@rescript/runtime/Stdlib_Lazy.res +++ b/packages/@rescript/runtime/Stdlib_Lazy.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t<+'a> diff --git a/packages/@rescript/runtime/Stdlib_List.res b/packages/@rescript/runtime/Stdlib_List.res index 3478ded2b5a..3c8c3effacd 100644 --- a/packages/@rescript/runtime/Stdlib_List.res +++ b/packages/@rescript/runtime/Stdlib_List.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /* perf is not everything, there are better memory represenations diff --git a/packages/@rescript/runtime/Stdlib_List.resi b/packages/@rescript/runtime/Stdlib_List.resi index 82c100e2d42..bd150d8269b 100644 --- a/packages/@rescript/runtime/Stdlib_List.resi +++ b/packages/@rescript/runtime/Stdlib_List.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /** Collection functions for manipulating the `list` data structures, a singly-linked list. diff --git a/packages/@rescript/runtime/Stdlib_Math.resi b/packages/@rescript/runtime/Stdlib_Math.resi index fc6b6f5e9ac..8f865b1f792 100644 --- a/packages/@rescript/runtime/Stdlib_Math.resi +++ b/packages/@rescript/runtime/Stdlib_Math.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Functions for interacting with JavaScript Math. diff --git a/packages/@rescript/runtime/Stdlib_Option.res b/packages/@rescript/runtime/Stdlib_Option.res index 038e26dc424..fde39b5e902 100644 --- a/packages/@rescript/runtime/Stdlib_Option.res +++ b/packages/@rescript/runtime/Stdlib_Option.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t<'a> = option<'a> = None | Some('a) let filter = (opt, p) => diff --git a/packages/@rescript/runtime/Stdlib_Option.resi b/packages/@rescript/runtime/Stdlib_Option.resi index 6f2c5776419..790f2e140f0 100644 --- a/packages/@rescript/runtime/Stdlib_Option.resi +++ b/packages/@rescript/runtime/Stdlib_Option.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** We represent the existence and nonexistence of a value by wrapping it with diff --git a/packages/@rescript/runtime/Stdlib_Result.res b/packages/@rescript/runtime/Stdlib_Result.res index 4730f41f06e..aaea0df5487 100644 --- a/packages/@rescript/runtime/Stdlib_Result.res +++ b/packages/@rescript/runtime/Stdlib_Result.res @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Hongbo Zhang, Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ type t<'res, 'err> = result<'res, 'err> = Ok('res) | Error('err) let getOrThrow = (x, ~message=?) => diff --git a/packages/@rescript/runtime/Stdlib_Result.resi b/packages/@rescript/runtime/Stdlib_Result.resi index e99da81000c..15142d17473 100644 --- a/packages/@rescript/runtime/Stdlib_Result.resi +++ b/packages/@rescript/runtime/Stdlib_Result.resi @@ -1,26 +1,8 @@ -/* Copyright (C) 2017 Authors of ReScript +/* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /** Result types are really useful to describe the result of a certain operation diff --git a/packages/@rescript/runtime/Stdlib_String.resi b/packages/@rescript/runtime/Stdlib_String.resi index b0144f2b097..b9c4f5233b6 100644 --- a/packages/@rescript/runtime/Stdlib_String.resi +++ b/packages/@rescript/runtime/Stdlib_String.resi @@ -1,26 +1,8 @@ /* Copyright (C) 2015-2016 Bloomberg Finance L.P. + * Copyright (C) 2017- Hongbo Zhang, Authors of ReScript * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * In addition to the permissions granted to you by the LGPL, you may combine - * or link a "work that uses the Library" with a publicly distributed version - * of this file to produce a combined library or application, then distribute - * that combined work under the terms of your choosing, with no requirement - * to comply with the obligations normally placed on you by section 4 of the - * LGPL version 3 (or the corresponding section of a later version of the LGPL - * should you choose to use a later version). - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + * SPDX-License-Identifier: MIT + */ /*** Functions for interacting with JavaScript strings. diff --git a/packages/@rescript/runtime/package.json b/packages/@rescript/runtime/package.json index a3a43fc287c..0589d6a78fc 100644 --- a/packages/@rescript/runtime/package.json +++ b/packages/@rescript/runtime/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript runtime modules", "type": "module", + "license": "MIT", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { diff --git a/packages/@rescript/win32-x64/package.json b/packages/@rescript/win32-x64/package.json index 48b1fe439c4..597ced705b2 100644 --- a/packages/@rescript/win32-x64/package.json +++ b/packages/@rescript/win32-x64/package.json @@ -3,6 +3,7 @@ "version": "12.2.0", "description": "ReScript binaries for Windows x86_64", "type": "module", + "license": "(LGPL-3.0-or-later AND MIT)", "homepage": "https://rescript-lang.org", "bugs": "https://github.com/rescript-lang/rescript/issues", "repository": { From 874d8ac1cf6886b2d87a5c20475a322e191b4e93 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 17 Feb 2026 10:56:52 +0100 Subject: [PATCH 08/13] Line numbers changed in runtime JS --- packages/@rescript/runtime/lib/es6/Belt_Array.js | 4 ++-- packages/@rescript/runtime/lib/es6/Belt_internalAVLset.js | 2 +- packages/@rescript/runtime/lib/es6/Belt_internalAVLtree.js | 2 +- packages/@rescript/runtime/lib/es6/Primitive_hash.js | 2 +- packages/@rescript/runtime/lib/js/Belt_Array.js | 4 ++-- packages/@rescript/runtime/lib/js/Belt_internalAVLset.js | 2 +- packages/@rescript/runtime/lib/js/Belt_internalAVLtree.js | 2 +- packages/@rescript/runtime/lib/js/Primitive_hash.js | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/@rescript/runtime/lib/es6/Belt_Array.js b/packages/@rescript/runtime/lib/es6/Belt_Array.js index 8e6b8e5943c..7fb2fa4574b 100644 --- a/packages/@rescript/runtime/lib/es6/Belt_Array.js +++ b/packages/@rescript/runtime/lib/es6/Belt_Array.js @@ -15,7 +15,7 @@ function getOrThrow(arr, i) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_Array.res", - 36, + 29, 2 ], Error: new Error() @@ -39,7 +39,7 @@ function setOrThrow(arr, i, v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_Array.res", - 51, + 44, 2 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/es6/Belt_internalAVLset.js b/packages/@rescript/runtime/lib/es6/Belt_internalAVLset.js index dcefd17a274..49b1405749a 100644 --- a/packages/@rescript/runtime/lib/es6/Belt_internalAVLset.js +++ b/packages/@rescript/runtime/lib/es6/Belt_internalAVLset.js @@ -350,7 +350,7 @@ function checkInvariantInternal(_v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_internalAVLset.res", - 310, + 292, 4 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/es6/Belt_internalAVLtree.js b/packages/@rescript/runtime/lib/es6/Belt_internalAVLtree.js index ae66e930e45..cd9a75c271d 100644 --- a/packages/@rescript/runtime/lib/es6/Belt_internalAVLtree.js +++ b/packages/@rescript/runtime/lib/es6/Belt_internalAVLtree.js @@ -542,7 +542,7 @@ function checkInvariantInternal(_v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_internalAVLtree.res", - 439, + 432, 4 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/es6/Primitive_hash.js b/packages/@rescript/runtime/lib/es6/Primitive_hash.js index 3c3fec58db0..a89108b18e7 100644 --- a/packages/@rescript/runtime/lib/es6/Primitive_hash.js +++ b/packages/@rescript/runtime/lib/es6/Primitive_hash.js @@ -36,7 +36,7 @@ function unsafe_pop(q) { RE_EXN_ID: "Assert_failure", _1: [ "Primitive_hash.res", - 73, + 55, 12 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/js/Belt_Array.js b/packages/@rescript/runtime/lib/js/Belt_Array.js index 74064ffda11..c45416a693f 100644 --- a/packages/@rescript/runtime/lib/js/Belt_Array.js +++ b/packages/@rescript/runtime/lib/js/Belt_Array.js @@ -15,7 +15,7 @@ function getOrThrow(arr, i) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_Array.res", - 36, + 29, 2 ], Error: new Error() @@ -39,7 +39,7 @@ function setOrThrow(arr, i, v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_Array.res", - 51, + 44, 2 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/js/Belt_internalAVLset.js b/packages/@rescript/runtime/lib/js/Belt_internalAVLset.js index 7839c1fad37..6700e0d4ecd 100644 --- a/packages/@rescript/runtime/lib/js/Belt_internalAVLset.js +++ b/packages/@rescript/runtime/lib/js/Belt_internalAVLset.js @@ -350,7 +350,7 @@ function checkInvariantInternal(_v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_internalAVLset.res", - 310, + 292, 4 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/js/Belt_internalAVLtree.js b/packages/@rescript/runtime/lib/js/Belt_internalAVLtree.js index 1b15b391fa5..0c775e1ca4d 100644 --- a/packages/@rescript/runtime/lib/js/Belt_internalAVLtree.js +++ b/packages/@rescript/runtime/lib/js/Belt_internalAVLtree.js @@ -542,7 +542,7 @@ function checkInvariantInternal(_v) { RE_EXN_ID: "Assert_failure", _1: [ "Belt_internalAVLtree.res", - 439, + 432, 4 ], Error: new Error() diff --git a/packages/@rescript/runtime/lib/js/Primitive_hash.js b/packages/@rescript/runtime/lib/js/Primitive_hash.js index 0db63f10e7f..97c342fba64 100644 --- a/packages/@rescript/runtime/lib/js/Primitive_hash.js +++ b/packages/@rescript/runtime/lib/js/Primitive_hash.js @@ -36,7 +36,7 @@ function unsafe_pop(q) { RE_EXN_ID: "Assert_failure", _1: [ "Primitive_hash.res", - 73, + 55, 12 ], Error: new Error() From fca60ef1de937ca4762a7f1549fea943151ea242 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 17 Feb 2026 11:07:40 +0100 Subject: [PATCH 09/13] More line number changes --- tests/analysis_tests/tests/src/expected/Completion.res.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/analysis_tests/tests/src/expected/Completion.res.txt b/tests/analysis_tests/tests/src/expected/Completion.res.txt index df30210ef2b..f5c76f1717e 100644 --- a/tests/analysis_tests/tests/src/expected/Completion.res.txt +++ b/tests/analysis_tests/tests/src/expected/Completion.res.txt @@ -2051,7 +2051,7 @@ Path this }] Hover src/Completion.res 349:14 -{"contents": {"kind": "markdown", "value": "```rescript\nJsxDOM.domProps\n```\n\n---\n\n```\n \n```\n```rescript\ntype JsxDOM.domProps = {\n key?: string,\n children?: Jsx.element,\n ref?: domRef,\n allow?: string,\n ariaCurrent?: [\n | #date\n | #\"false\"\n | #location\n | #page\n | #step\n | #time\n | #\"true\"\n ],\n ariaDetails?: string,\n ariaDisabled?: bool,\n ariaHidden?: bool,\n ariaInvalid?: [#\"false\" | #grammar | #spelling | #\"true\"],\n ariaKeyshortcuts?: string,\n ariaLabel?: string,\n ariaRoledescription?: string,\n ariaAutocomplete?: [#both | #inline | #list | #none],\n ariaChecked?: [#\"false\" | #mixed | #\"true\"],\n ariaExpanded?: bool,\n ariaHaspopup?: [\n | #dialog\n | #\"false\"\n | #grid\n | #listbox\n | #menu\n | #tree\n | #\"true\"\n ],\n ariaLevel?: int,\n ariaModal?: bool,\n ariaMultiline?: bool,\n ariaMultiselectable?: bool,\n ariaOrientation?: [#horizontal | #undefined | #vertical],\n ariaPlaceholder?: string,\n ariaPressed?: [#\"false\" | #mixed | #\"true\"],\n ariaReadonly?: bool,\n ariaRequired?: bool,\n ariaSelected?: bool,\n ariaSort?: string,\n ariaValuemax?: float,\n ariaValuemin?: float,\n ariaValuenow?: float,\n ariaValuetext?: string,\n ariaAtomic?: bool,\n ariaBusy?: bool,\n ariaLive?: [#assertive | #off | #polite | #rude],\n ariaRelevant?: string,\n ariaDropeffect?: [\n | #copy\n | #execute\n | #link\n | #move\n | #none\n | #popup\n ],\n ariaGrabbed?: bool,\n ariaActivedescendant?: string,\n ariaColcount?: int,\n ariaColindex?: int,\n ariaColspan?: int,\n ariaControls?: string,\n ariaDescribedby?: string,\n ariaErrormessage?: string,\n ariaFlowto?: string,\n ariaLabelledby?: string,\n ariaOwns?: string,\n ariaPosinset?: int,\n ariaRowcount?: int,\n ariaRowindex?: int,\n ariaRowspan?: int,\n ariaSetsize?: int,\n defaultChecked?: bool,\n defaultValue?: string,\n accessKey?: string,\n capture?: [#environment | #user],\n className?: string,\n contentEditable?: bool,\n contextMenu?: string,\n dataTestId?: string,\n dir?: string,\n draggable?: bool,\n hidden?: bool,\n id?: string,\n inert?: bool,\n lang?: string,\n popover?: popover,\n popoverTarget?: string,\n popoverTargetAction?: popoverTargetAction,\n role?: string,\n style?: style,\n spellCheck?: bool,\n tabIndex?: int,\n title?: string,\n itemID?: string,\n itemProp?: string,\n itemRef?: string,\n itemScope?: bool,\n itemType?: string,\n accept?: string,\n acceptCharset?: string,\n action?: string,\n allowFullScreen?: bool,\n alt?: string,\n as_?: string,\n async?: bool,\n autoComplete?: string,\n autoCapitalize?: string,\n autoFocus?: bool,\n autoPlay?: bool,\n challenge?: string,\n charSet?: string,\n checked?: bool,\n cite?: string,\n crossOrigin?: string,\n cols?: int,\n colSpan?: int,\n content?: string,\n controls?: bool,\n coords?: string,\n data?: string,\n dateTime?: string,\n default?: bool,\n defer?: bool,\n disabled?: bool,\n download?: string,\n encType?: string,\n form?: string,\n formAction?: string,\n formTarget?: string,\n formMethod?: string,\n frameBorder?: int,\n headers?: string,\n height?: string,\n high?: int,\n href?: string,\n hrefLang?: string,\n htmlFor?: string,\n httpEquiv?: string,\n icon?: string,\n inputMode?: string,\n integrity?: string,\n keyType?: string,\n kind?: string,\n label?: string,\n list?: string,\n loading?: [#eager | #lazy],\n loop?: bool,\n low?: int,\n manifest?: string,\n max?: string,\n maxLength?: int,\n media?: string,\n mediaGroup?: string,\n method?: string,\n min?: string,\n minLength?: int,\n multiple?: bool,\n muted?: bool,\n name?: string,\n nonce?: string,\n noValidate?: bool,\n open_?: bool,\n optimum?: int,\n pattern?: string,\n placeholder?: string,\n playsInline?: bool,\n poster?: string,\n preload?: string,\n radioGroup?: string,\n readOnly?: bool,\n rel?: string,\n required?: bool,\n reversed?: bool,\n rows?: int,\n rowSpan?: int,\n sandbox?: string,\n scope?: string,\n scoped?: bool,\n scrolling?: string,\n selected?: bool,\n shape?: string,\n size?: int,\n sizes?: string,\n span?: int,\n src?: string,\n srcDoc?: string,\n srcLang?: string,\n srcSet?: string,\n start?: int,\n step?: float,\n summary?: string,\n target?: string,\n type_?: string,\n useMap?: string,\n value?: string,\n width?: string,\n wrap?: string,\n onCopy?: JsxEvent.Clipboard.t => unit,\n onCut?: JsxEvent.Clipboard.t => unit,\n onPaste?: JsxEvent.Clipboard.t => unit,\n onCompositionEnd?: JsxEvent.Composition.t => unit,\n onCompositionStart?: JsxEvent.Composition.t => unit,\n onCompositionUpdate?: JsxEvent.Composition.t => unit,\n onKeyDown?: JsxEvent.Keyboard.t => unit,\n onKeyPress?: JsxEvent.Keyboard.t => unit,\n onKeyUp?: JsxEvent.Keyboard.t => unit,\n onFocus?: JsxEvent.Focus.t => unit,\n onBlur?: JsxEvent.Focus.t => unit,\n onBeforeInput?: JsxEvent.Form.t => unit,\n onChange?: JsxEvent.Form.t => unit,\n onInput?: JsxEvent.Form.t => unit,\n onReset?: JsxEvent.Form.t => unit,\n onSubmit?: JsxEvent.Form.t => unit,\n onInvalid?: JsxEvent.Form.t => unit,\n onClick?: JsxEvent.Mouse.t => unit,\n onContextMenu?: JsxEvent.Mouse.t => unit,\n onDoubleClick?: JsxEvent.Mouse.t => unit,\n onDrag?: JsxEvent.Mouse.t => unit,\n onDragEnd?: JsxEvent.Mouse.t => unit,\n onDragEnter?: JsxEvent.Mouse.t => unit,\n onDragExit?: JsxEvent.Mouse.t => unit,\n onDragLeave?: JsxEvent.Mouse.t => unit,\n onDragOver?: JsxEvent.Mouse.t => unit,\n onDragStart?: JsxEvent.Mouse.t => unit,\n onDrop?: JsxEvent.Mouse.t => unit,\n onMouseDown?: JsxEvent.Mouse.t => unit,\n onMouseEnter?: JsxEvent.Mouse.t => unit,\n onMouseLeave?: JsxEvent.Mouse.t => unit,\n onMouseMove?: JsxEvent.Mouse.t => unit,\n onMouseOut?: JsxEvent.Mouse.t => unit,\n onMouseOver?: JsxEvent.Mouse.t => unit,\n onMouseUp?: JsxEvent.Mouse.t => unit,\n onSelect?: JsxEvent.Selection.t => unit,\n onTouchCancel?: JsxEvent.Touch.t => unit,\n onTouchEnd?: JsxEvent.Touch.t => unit,\n onTouchMove?: JsxEvent.Touch.t => unit,\n onTouchStart?: JsxEvent.Touch.t => unit,\n onPointerOver?: JsxEvent.Pointer.t => unit,\n onPointerEnter?: JsxEvent.Pointer.t => unit,\n onPointerDown?: JsxEvent.Pointer.t => unit,\n onPointerMove?: JsxEvent.Pointer.t => unit,\n onPointerUp?: JsxEvent.Pointer.t => unit,\n onPointerCancel?: JsxEvent.Pointer.t => unit,\n onPointerOut?: JsxEvent.Pointer.t => unit,\n onPointerLeave?: JsxEvent.Pointer.t => unit,\n onGotPointerCapture?: JsxEvent.Pointer.t => unit,\n onLostPointerCapture?: JsxEvent.Pointer.t => unit,\n onScroll?: JsxEvent.UI.t => unit,\n onWheel?: JsxEvent.Wheel.t => unit,\n onAbort?: JsxEvent.Media.t => unit,\n onCanPlay?: JsxEvent.Media.t => unit,\n onCanPlayThrough?: JsxEvent.Media.t => unit,\n onDurationChange?: JsxEvent.Media.t => unit,\n onEmptied?: JsxEvent.Media.t => unit,\n onEncrypted?: JsxEvent.Media.t => unit,\n onEnded?: JsxEvent.Media.t => unit,\n onError?: JsxEvent.Media.t => unit,\n onLoadedData?: JsxEvent.Media.t => unit,\n onLoadedMetadata?: JsxEvent.Media.t => unit,\n onLoadStart?: JsxEvent.Media.t => unit,\n onPause?: JsxEvent.Media.t => unit,\n onPlay?: JsxEvent.Media.t => unit,\n onPlaying?: JsxEvent.Media.t => unit,\n onProgress?: JsxEvent.Media.t => unit,\n onRateChange?: JsxEvent.Media.t => unit,\n onSeeked?: JsxEvent.Media.t => unit,\n onSeeking?: JsxEvent.Media.t => unit,\n onStalled?: JsxEvent.Media.t => unit,\n onSuspend?: JsxEvent.Media.t => unit,\n onTimeUpdate?: JsxEvent.Media.t => unit,\n onVolumeChange?: JsxEvent.Media.t => unit,\n onWaiting?: JsxEvent.Media.t => unit,\n onLoad?: JsxEvent.Image.t => unit,\n onAnimationStart?: JsxEvent.Animation.t => unit,\n onAnimationEnd?: JsxEvent.Animation.t => unit,\n onAnimationIteration?: JsxEvent.Animation.t => unit,\n onTransitionEnd?: JsxEvent.Transition.t => unit,\n accentHeight?: string,\n accumulate?: string,\n additive?: string,\n alignmentBaseline?: string,\n allowReorder?: string,\n alphabetic?: string,\n amplitude?: string,\n arabicForm?: string,\n ascent?: string,\n attributeName?: string,\n attributeType?: string,\n autoReverse?: string,\n azimuth?: string,\n baseFrequency?: string,\n baseProfile?: string,\n baselineShift?: string,\n bbox?: string,\n begin?: string,\n begin_?: string,\n bias?: string,\n by?: string,\n calcMode?: string,\n capHeight?: string,\n clip?: string,\n clipPath?: string,\n clipPathUnits?: string,\n clipRule?: string,\n colorInterpolation?: string,\n colorInterpolationFilters?: string,\n colorProfile?: string,\n colorRendering?: string,\n contentScriptType?: string,\n contentStyleType?: string,\n cursor?: string,\n cx?: string,\n cy?: string,\n d?: string,\n decelerate?: string,\n descent?: string,\n diffuseConstant?: string,\n direction?: string,\n display?: string,\n divisor?: string,\n dominantBaseline?: string,\n dur?: string,\n dx?: string,\n dy?: string,\n edgeMode?: string,\n elevation?: string,\n enableBackground?: string,\n end?: string,\n end_?: string,\n exponent?: string,\n externalResourcesRequired?: string,\n fill?: string,\n fillOpacity?: string,\n fillRule?: string,\n filter?: string,\n filterRes?: string,\n filterUnits?: string,\n floodColor?: string,\n floodOpacity?: string,\n focusable?: string,\n fontFamily?: string,\n fontSize?: string,\n fontSizeAdjust?: string,\n fontStretch?: string,\n fontStyle?: string,\n fontVariant?: string,\n fontWeight?: string,\n fomat?: string,\n from?: string,\n fx?: string,\n fy?: string,\n g1?: string,\n g2?: string,\n glyphName?: string,\n glyphOrientationHorizontal?: string,\n glyphOrientationVertical?: string,\n glyphRef?: string,\n gradientTransform?: string,\n gradientUnits?: string,\n hanging?: string,\n horizAdvX?: string,\n horizOriginX?: string,\n ideographic?: string,\n imageRendering?: string,\n in_?: string,\n in2?: string,\n intercept?: string,\n k?: string,\n k1?: string,\n k2?: string,\n k3?: string,\n k4?: string,\n kernelMatrix?: string,\n kernelUnitLength?: string,\n kerning?: string,\n keyPoints?: string,\n keySplines?: string,\n keyTimes?: string,\n lengthAdjust?: string,\n letterSpacing?: string,\n lightingColor?: string,\n limitingConeAngle?: string,\n local?: string,\n markerEnd?: string,\n markerHeight?: string,\n markerMid?: string,\n markerStart?: string,\n markerUnits?: string,\n markerWidth?: string,\n mask?: string,\n maskContentUnits?: string,\n maskUnits?: string,\n mathematical?: string,\n mode?: string,\n numOctaves?: string,\n offset?: string,\n opacity?: string,\n operator?: string,\n order?: string,\n orient?: string,\n orientation?: string,\n origin?: string,\n overflow?: string,\n overflowX?: string,\n overflowY?: string,\n overlinePosition?: string,\n overlineThickness?: string,\n paintOrder?: string,\n panose1?: string,\n pathLength?: string,\n patternContentUnits?: string,\n patternTransform?: string,\n patternUnits?: string,\n pointerEvents?: string,\n points?: string,\n pointsAtX?: string,\n pointsAtY?: string,\n pointsAtZ?: string,\n preserveAlpha?: string,\n preserveAspectRatio?: string,\n primitiveUnits?: string,\n r?: string,\n radius?: string,\n referrerPolicy?: string,\n refX?: string,\n refY?: string,\n renderingIntent?: string,\n repeatCount?: string,\n repeatDur?: string,\n requiredExtensions?: string,\n requiredFeatures?: string,\n restart?: string,\n result?: string,\n rotate?: string,\n rx?: string,\n ry?: string,\n scale?: string,\n seed?: string,\n shapeRendering?: string,\n slope?: string,\n slot?: string,\n spacing?: string,\n specularConstant?: string,\n specularExponent?: string,\n speed?: string,\n spreadMethod?: string,\n startOffset?: string,\n stdDeviation?: string,\n stemh?: string,\n stemv?: string,\n stitchTiles?: string,\n stopColor?: string,\n stopOpacity?: string,\n strikethroughPosition?: string,\n strikethroughThickness?: string,\n string?: string,\n stroke?: string,\n strokeDasharray?: string,\n strokeDashoffset?: string,\n strokeLinecap?: string,\n strokeLinejoin?: string,\n strokeMiterlimit?: string,\n strokeOpacity?: string,\n strokeWidth?: string,\n surfaceScale?: string,\n systemLanguage?: string,\n tableValues?: string,\n targetX?: string,\n targetY?: string,\n textAnchor?: string,\n textDecoration?: string,\n textLength?: string,\n textRendering?: string,\n to?: string,\n to_?: string,\n transform?: string,\n u1?: string,\n u2?: string,\n underlinePosition?: string,\n underlineThickness?: string,\n unicode?: string,\n unicodeBidi?: string,\n unicodeRange?: string,\n unitsPerEm?: string,\n vAlphabetic?: string,\n vHanging?: string,\n vIdeographic?: string,\n vMathematical?: string,\n values?: string,\n vectorEffect?: string,\n version?: string,\n vertAdvX?: string,\n vertAdvY?: string,\n vertOriginX?: string,\n vertOriginY?: string,\n viewBox?: string,\n viewTarget?: string,\n visibility?: string,\n widths?: string,\n wordSpacing?: string,\n writingMode?: string,\n x?: string,\n x1?: string,\n x2?: string,\n xChannelSelector?: string,\n xHeight?: string,\n xlinkActuate?: string,\n xlinkArcrole?: string,\n xlinkHref?: string,\n xlinkRole?: string,\n xlinkShow?: string,\n xlinkTitle?: string,\n xlinkType?: string,\n xmlns?: string,\n xmlnsXlink?: string,\n xmlBase?: string,\n xmlLang?: string,\n xmlSpace?: string,\n y?: string,\n y1?: string,\n y2?: string,\n yChannelSelector?: string,\n z?: string,\n zoomAndPan?: string,\n about?: string,\n datatype?: string,\n inlist?: string,\n prefix?: string,\n property?: string,\n resource?: string,\n typeof?: string,\n vocab?: string,\n dangerouslySetInnerHTML?: {\"__html\": string},\n suppressContentEditableWarning?: bool,\n}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C38%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Jsx.res%22%2C25%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype domRef\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C25%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype popover =\n | @as(\"auto\") Auto\n | @as(\"manual\") Manual\n | @as(\"hint\") Hint\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C29%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype popoverTargetAction =\n | @as(\"toggle\") Toggle\n | @as(\"show\") Show\n | @as(\"hide\") Hide\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C33%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype style = JsxDOMStyle.t\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C24%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Clipboard.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C95%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Composition.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C105%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Keyboard.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C114%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Focus.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C136%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Form.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C146%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Mouse.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C153%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Selection.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C230%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Touch.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C237%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Pointer.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C182%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.UI.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C260%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Wheel.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C271%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Media.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C283%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Image.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C290%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Animation.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C297%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Transition.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C308%2C2%5D)\n"}} +{"contents": {"kind": "markdown", "value": "```rescript\nJsxDOM.domProps\n```\n\n---\n\n```\n \n```\n```rescript\ntype JsxDOM.domProps = {\n key?: string,\n children?: Jsx.element,\n ref?: domRef,\n allow?: string,\n ariaCurrent?: [\n | #date\n | #\"false\"\n | #location\n | #page\n | #step\n | #time\n | #\"true\"\n ],\n ariaDetails?: string,\n ariaDisabled?: bool,\n ariaHidden?: bool,\n ariaInvalid?: [#\"false\" | #grammar | #spelling | #\"true\"],\n ariaKeyshortcuts?: string,\n ariaLabel?: string,\n ariaRoledescription?: string,\n ariaAutocomplete?: [#both | #inline | #list | #none],\n ariaChecked?: [#\"false\" | #mixed | #\"true\"],\n ariaExpanded?: bool,\n ariaHaspopup?: [\n | #dialog\n | #\"false\"\n | #grid\n | #listbox\n | #menu\n | #tree\n | #\"true\"\n ],\n ariaLevel?: int,\n ariaModal?: bool,\n ariaMultiline?: bool,\n ariaMultiselectable?: bool,\n ariaOrientation?: [#horizontal | #undefined | #vertical],\n ariaPlaceholder?: string,\n ariaPressed?: [#\"false\" | #mixed | #\"true\"],\n ariaReadonly?: bool,\n ariaRequired?: bool,\n ariaSelected?: bool,\n ariaSort?: string,\n ariaValuemax?: float,\n ariaValuemin?: float,\n ariaValuenow?: float,\n ariaValuetext?: string,\n ariaAtomic?: bool,\n ariaBusy?: bool,\n ariaLive?: [#assertive | #off | #polite | #rude],\n ariaRelevant?: string,\n ariaDropeffect?: [\n | #copy\n | #execute\n | #link\n | #move\n | #none\n | #popup\n ],\n ariaGrabbed?: bool,\n ariaActivedescendant?: string,\n ariaColcount?: int,\n ariaColindex?: int,\n ariaColspan?: int,\n ariaControls?: string,\n ariaDescribedby?: string,\n ariaErrormessage?: string,\n ariaFlowto?: string,\n ariaLabelledby?: string,\n ariaOwns?: string,\n ariaPosinset?: int,\n ariaRowcount?: int,\n ariaRowindex?: int,\n ariaRowspan?: int,\n ariaSetsize?: int,\n defaultChecked?: bool,\n defaultValue?: string,\n accessKey?: string,\n capture?: [#environment | #user],\n className?: string,\n contentEditable?: bool,\n contextMenu?: string,\n dataTestId?: string,\n dir?: string,\n draggable?: bool,\n hidden?: bool,\n id?: string,\n inert?: bool,\n lang?: string,\n popover?: popover,\n popoverTarget?: string,\n popoverTargetAction?: popoverTargetAction,\n role?: string,\n style?: style,\n spellCheck?: bool,\n tabIndex?: int,\n title?: string,\n itemID?: string,\n itemProp?: string,\n itemRef?: string,\n itemScope?: bool,\n itemType?: string,\n accept?: string,\n acceptCharset?: string,\n action?: string,\n allowFullScreen?: bool,\n alt?: string,\n as_?: string,\n async?: bool,\n autoComplete?: string,\n autoCapitalize?: string,\n autoFocus?: bool,\n autoPlay?: bool,\n challenge?: string,\n charSet?: string,\n checked?: bool,\n cite?: string,\n crossOrigin?: string,\n cols?: int,\n colSpan?: int,\n content?: string,\n controls?: bool,\n coords?: string,\n data?: string,\n dateTime?: string,\n default?: bool,\n defer?: bool,\n disabled?: bool,\n download?: string,\n encType?: string,\n form?: string,\n formAction?: string,\n formTarget?: string,\n formMethod?: string,\n frameBorder?: int,\n headers?: string,\n height?: string,\n high?: int,\n href?: string,\n hrefLang?: string,\n htmlFor?: string,\n httpEquiv?: string,\n icon?: string,\n inputMode?: string,\n integrity?: string,\n keyType?: string,\n kind?: string,\n label?: string,\n list?: string,\n loading?: [#eager | #lazy],\n loop?: bool,\n low?: int,\n manifest?: string,\n max?: string,\n maxLength?: int,\n media?: string,\n mediaGroup?: string,\n method?: string,\n min?: string,\n minLength?: int,\n multiple?: bool,\n muted?: bool,\n name?: string,\n nonce?: string,\n noValidate?: bool,\n open_?: bool,\n optimum?: int,\n pattern?: string,\n placeholder?: string,\n playsInline?: bool,\n poster?: string,\n preload?: string,\n radioGroup?: string,\n readOnly?: bool,\n rel?: string,\n required?: bool,\n reversed?: bool,\n rows?: int,\n rowSpan?: int,\n sandbox?: string,\n scope?: string,\n scoped?: bool,\n scrolling?: string,\n selected?: bool,\n shape?: string,\n size?: int,\n sizes?: string,\n span?: int,\n src?: string,\n srcDoc?: string,\n srcLang?: string,\n srcSet?: string,\n start?: int,\n step?: float,\n summary?: string,\n target?: string,\n type_?: string,\n useMap?: string,\n value?: string,\n width?: string,\n wrap?: string,\n onCopy?: JsxEvent.Clipboard.t => unit,\n onCut?: JsxEvent.Clipboard.t => unit,\n onPaste?: JsxEvent.Clipboard.t => unit,\n onCompositionEnd?: JsxEvent.Composition.t => unit,\n onCompositionStart?: JsxEvent.Composition.t => unit,\n onCompositionUpdate?: JsxEvent.Composition.t => unit,\n onKeyDown?: JsxEvent.Keyboard.t => unit,\n onKeyPress?: JsxEvent.Keyboard.t => unit,\n onKeyUp?: JsxEvent.Keyboard.t => unit,\n onFocus?: JsxEvent.Focus.t => unit,\n onBlur?: JsxEvent.Focus.t => unit,\n onBeforeInput?: JsxEvent.Form.t => unit,\n onChange?: JsxEvent.Form.t => unit,\n onInput?: JsxEvent.Form.t => unit,\n onReset?: JsxEvent.Form.t => unit,\n onSubmit?: JsxEvent.Form.t => unit,\n onInvalid?: JsxEvent.Form.t => unit,\n onClick?: JsxEvent.Mouse.t => unit,\n onContextMenu?: JsxEvent.Mouse.t => unit,\n onDoubleClick?: JsxEvent.Mouse.t => unit,\n onDrag?: JsxEvent.Mouse.t => unit,\n onDragEnd?: JsxEvent.Mouse.t => unit,\n onDragEnter?: JsxEvent.Mouse.t => unit,\n onDragExit?: JsxEvent.Mouse.t => unit,\n onDragLeave?: JsxEvent.Mouse.t => unit,\n onDragOver?: JsxEvent.Mouse.t => unit,\n onDragStart?: JsxEvent.Mouse.t => unit,\n onDrop?: JsxEvent.Mouse.t => unit,\n onMouseDown?: JsxEvent.Mouse.t => unit,\n onMouseEnter?: JsxEvent.Mouse.t => unit,\n onMouseLeave?: JsxEvent.Mouse.t => unit,\n onMouseMove?: JsxEvent.Mouse.t => unit,\n onMouseOut?: JsxEvent.Mouse.t => unit,\n onMouseOver?: JsxEvent.Mouse.t => unit,\n onMouseUp?: JsxEvent.Mouse.t => unit,\n onSelect?: JsxEvent.Selection.t => unit,\n onTouchCancel?: JsxEvent.Touch.t => unit,\n onTouchEnd?: JsxEvent.Touch.t => unit,\n onTouchMove?: JsxEvent.Touch.t => unit,\n onTouchStart?: JsxEvent.Touch.t => unit,\n onPointerOver?: JsxEvent.Pointer.t => unit,\n onPointerEnter?: JsxEvent.Pointer.t => unit,\n onPointerDown?: JsxEvent.Pointer.t => unit,\n onPointerMove?: JsxEvent.Pointer.t => unit,\n onPointerUp?: JsxEvent.Pointer.t => unit,\n onPointerCancel?: JsxEvent.Pointer.t => unit,\n onPointerOut?: JsxEvent.Pointer.t => unit,\n onPointerLeave?: JsxEvent.Pointer.t => unit,\n onGotPointerCapture?: JsxEvent.Pointer.t => unit,\n onLostPointerCapture?: JsxEvent.Pointer.t => unit,\n onScroll?: JsxEvent.UI.t => unit,\n onWheel?: JsxEvent.Wheel.t => unit,\n onAbort?: JsxEvent.Media.t => unit,\n onCanPlay?: JsxEvent.Media.t => unit,\n onCanPlayThrough?: JsxEvent.Media.t => unit,\n onDurationChange?: JsxEvent.Media.t => unit,\n onEmptied?: JsxEvent.Media.t => unit,\n onEncrypted?: JsxEvent.Media.t => unit,\n onEnded?: JsxEvent.Media.t => unit,\n onError?: JsxEvent.Media.t => unit,\n onLoadedData?: JsxEvent.Media.t => unit,\n onLoadedMetadata?: JsxEvent.Media.t => unit,\n onLoadStart?: JsxEvent.Media.t => unit,\n onPause?: JsxEvent.Media.t => unit,\n onPlay?: JsxEvent.Media.t => unit,\n onPlaying?: JsxEvent.Media.t => unit,\n onProgress?: JsxEvent.Media.t => unit,\n onRateChange?: JsxEvent.Media.t => unit,\n onSeeked?: JsxEvent.Media.t => unit,\n onSeeking?: JsxEvent.Media.t => unit,\n onStalled?: JsxEvent.Media.t => unit,\n onSuspend?: JsxEvent.Media.t => unit,\n onTimeUpdate?: JsxEvent.Media.t => unit,\n onVolumeChange?: JsxEvent.Media.t => unit,\n onWaiting?: JsxEvent.Media.t => unit,\n onLoad?: JsxEvent.Image.t => unit,\n onAnimationStart?: JsxEvent.Animation.t => unit,\n onAnimationEnd?: JsxEvent.Animation.t => unit,\n onAnimationIteration?: JsxEvent.Animation.t => unit,\n onTransitionEnd?: JsxEvent.Transition.t => unit,\n accentHeight?: string,\n accumulate?: string,\n additive?: string,\n alignmentBaseline?: string,\n allowReorder?: string,\n alphabetic?: string,\n amplitude?: string,\n arabicForm?: string,\n ascent?: string,\n attributeName?: string,\n attributeType?: string,\n autoReverse?: string,\n azimuth?: string,\n baseFrequency?: string,\n baseProfile?: string,\n baselineShift?: string,\n bbox?: string,\n begin?: string,\n begin_?: string,\n bias?: string,\n by?: string,\n calcMode?: string,\n capHeight?: string,\n clip?: string,\n clipPath?: string,\n clipPathUnits?: string,\n clipRule?: string,\n colorInterpolation?: string,\n colorInterpolationFilters?: string,\n colorProfile?: string,\n colorRendering?: string,\n contentScriptType?: string,\n contentStyleType?: string,\n cursor?: string,\n cx?: string,\n cy?: string,\n d?: string,\n decelerate?: string,\n descent?: string,\n diffuseConstant?: string,\n direction?: string,\n display?: string,\n divisor?: string,\n dominantBaseline?: string,\n dur?: string,\n dx?: string,\n dy?: string,\n edgeMode?: string,\n elevation?: string,\n enableBackground?: string,\n end?: string,\n end_?: string,\n exponent?: string,\n externalResourcesRequired?: string,\n fill?: string,\n fillOpacity?: string,\n fillRule?: string,\n filter?: string,\n filterRes?: string,\n filterUnits?: string,\n floodColor?: string,\n floodOpacity?: string,\n focusable?: string,\n fontFamily?: string,\n fontSize?: string,\n fontSizeAdjust?: string,\n fontStretch?: string,\n fontStyle?: string,\n fontVariant?: string,\n fontWeight?: string,\n fomat?: string,\n from?: string,\n fx?: string,\n fy?: string,\n g1?: string,\n g2?: string,\n glyphName?: string,\n glyphOrientationHorizontal?: string,\n glyphOrientationVertical?: string,\n glyphRef?: string,\n gradientTransform?: string,\n gradientUnits?: string,\n hanging?: string,\n horizAdvX?: string,\n horizOriginX?: string,\n ideographic?: string,\n imageRendering?: string,\n in_?: string,\n in2?: string,\n intercept?: string,\n k?: string,\n k1?: string,\n k2?: string,\n k3?: string,\n k4?: string,\n kernelMatrix?: string,\n kernelUnitLength?: string,\n kerning?: string,\n keyPoints?: string,\n keySplines?: string,\n keyTimes?: string,\n lengthAdjust?: string,\n letterSpacing?: string,\n lightingColor?: string,\n limitingConeAngle?: string,\n local?: string,\n markerEnd?: string,\n markerHeight?: string,\n markerMid?: string,\n markerStart?: string,\n markerUnits?: string,\n markerWidth?: string,\n mask?: string,\n maskContentUnits?: string,\n maskUnits?: string,\n mathematical?: string,\n mode?: string,\n numOctaves?: string,\n offset?: string,\n opacity?: string,\n operator?: string,\n order?: string,\n orient?: string,\n orientation?: string,\n origin?: string,\n overflow?: string,\n overflowX?: string,\n overflowY?: string,\n overlinePosition?: string,\n overlineThickness?: string,\n paintOrder?: string,\n panose1?: string,\n pathLength?: string,\n patternContentUnits?: string,\n patternTransform?: string,\n patternUnits?: string,\n pointerEvents?: string,\n points?: string,\n pointsAtX?: string,\n pointsAtY?: string,\n pointsAtZ?: string,\n preserveAlpha?: string,\n preserveAspectRatio?: string,\n primitiveUnits?: string,\n r?: string,\n radius?: string,\n referrerPolicy?: string,\n refX?: string,\n refY?: string,\n renderingIntent?: string,\n repeatCount?: string,\n repeatDur?: string,\n requiredExtensions?: string,\n requiredFeatures?: string,\n restart?: string,\n result?: string,\n rotate?: string,\n rx?: string,\n ry?: string,\n scale?: string,\n seed?: string,\n shapeRendering?: string,\n slope?: string,\n slot?: string,\n spacing?: string,\n specularConstant?: string,\n specularExponent?: string,\n speed?: string,\n spreadMethod?: string,\n startOffset?: string,\n stdDeviation?: string,\n stemh?: string,\n stemv?: string,\n stitchTiles?: string,\n stopColor?: string,\n stopOpacity?: string,\n strikethroughPosition?: string,\n strikethroughThickness?: string,\n string?: string,\n stroke?: string,\n strokeDasharray?: string,\n strokeDashoffset?: string,\n strokeLinecap?: string,\n strokeLinejoin?: string,\n strokeMiterlimit?: string,\n strokeOpacity?: string,\n strokeWidth?: string,\n surfaceScale?: string,\n systemLanguage?: string,\n tableValues?: string,\n targetX?: string,\n targetY?: string,\n textAnchor?: string,\n textDecoration?: string,\n textLength?: string,\n textRendering?: string,\n to?: string,\n to_?: string,\n transform?: string,\n u1?: string,\n u2?: string,\n underlinePosition?: string,\n underlineThickness?: string,\n unicode?: string,\n unicodeBidi?: string,\n unicodeRange?: string,\n unitsPerEm?: string,\n vAlphabetic?: string,\n vHanging?: string,\n vIdeographic?: string,\n vMathematical?: string,\n values?: string,\n vectorEffect?: string,\n version?: string,\n vertAdvX?: string,\n vertAdvY?: string,\n vertOriginX?: string,\n vertOriginY?: string,\n viewBox?: string,\n viewTarget?: string,\n visibility?: string,\n widths?: string,\n wordSpacing?: string,\n writingMode?: string,\n x?: string,\n x1?: string,\n x2?: string,\n xChannelSelector?: string,\n xHeight?: string,\n xlinkActuate?: string,\n xlinkArcrole?: string,\n xlinkHref?: string,\n xlinkRole?: string,\n xlinkShow?: string,\n xlinkTitle?: string,\n xlinkType?: string,\n xmlns?: string,\n xmlnsXlink?: string,\n xmlBase?: string,\n xmlLang?: string,\n xmlSpace?: string,\n y?: string,\n y1?: string,\n y2?: string,\n yChannelSelector?: string,\n z?: string,\n zoomAndPan?: string,\n about?: string,\n datatype?: string,\n inlist?: string,\n prefix?: string,\n property?: string,\n resource?: string,\n typeof?: string,\n vocab?: string,\n dangerouslySetInnerHTML?: {\"__html\": string},\n suppressContentEditableWarning?: bool,\n}\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C20%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype Jsx.element\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Jsx.res%22%2C7%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype domRef\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C7%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype popover =\n | @as(\"auto\") Auto\n | @as(\"manual\") Manual\n | @as(\"hint\") Hint\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C11%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype popoverTargetAction =\n | @as(\"toggle\") Toggle\n | @as(\"show\") Show\n | @as(\"hide\") Hide\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C15%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype style = JsxDOMStyle.t\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxDOM.res%22%2C6%2C0%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Clipboard.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C77%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Composition.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C87%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Keyboard.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C96%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Focus.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C118%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Form.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C128%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Mouse.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C135%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Selection.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C212%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Touch.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C219%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Pointer.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C164%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.UI.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C242%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Wheel.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C253%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Media.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C265%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Image.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C272%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Animation.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C279%2C2%5D)\n\n\n---\n\n```\n \n```\n```rescript\ntype JsxEvent.Transition.t = synthetic\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22JsxEvent.res%22%2C290%2C2%5D)\n"}} Hover src/Completion.res 352:17 Nothing at that position. Now trying to use completion. From 0463f922f596365075f646386742727d21b91d8d Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Tue, 17 Feb 2026 11:21:47 +0100 Subject: [PATCH 10/13] artifact list --- packages/artifacts.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/artifacts.json b/packages/artifacts.json index ee982653b46..2cb5dc990be 100644 --- a/packages/artifacts.json +++ b/packages/artifacts.json @@ -5,6 +5,7 @@ "COPYING.LESSER", "CREDITS.md", "LICENSE", + "LICENSE.MIT", "README.md", "cli/bsc.js", "cli/bstracing.js", From 8cf3745131d35db406dd4a57472f1c309ef3bd50 Mon Sep 17 00:00:00 2001 From: Shulhi Sapli <913103+shulhi@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:43:51 +0800 Subject: [PATCH 11/13] Port Belt.Array's zip, zipBy, partition, unzip to Stdlib Array (#8244) * Port Belt.Array's zip, zipBy, partition, unzip to Stdlib Array * Update completion test * Update CHANGELOG * Missed the PR link # Conflicts: # packages/@rescript/runtime/lib/es6/Stdlib_Array.js # packages/@rescript/runtime/lib/js/Stdlib_Array.js --- CHANGELOG.md | 2 + packages/@rescript/runtime/Stdlib_Array.res | 53 ++++++++++++++ packages/@rescript/runtime/Stdlib_Array.resi | 55 +++++++++++++++ .../@rescript/runtime/lib/es6/Stdlib_Array.js | 69 +++++++++++++++++++ .../@rescript/runtime/lib/js/Stdlib_Array.js | 69 +++++++++++++++++++ .../tests/src/expected/Completion.res.txt | 24 +++++++ .../expected/DotPipeCompletionSpec.res.txt | 12 ++++ 7 files changed, 284 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7732fe3af6b..eb5bfd2cd2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ #### :boom: Breaking Change +- Stdlib: Added Array.zip, Array.unzip, Array.zipBy, and Array.partition. https://github.com/rescript-lang/rescript/pull/8244 + #### :eyeglasses: Spec Compliance #### :rocket: New Feature diff --git a/packages/@rescript/runtime/Stdlib_Array.res b/packages/@rescript/runtime/Stdlib_Array.res index 30dd573fd7b..e610826780e 100644 --- a/packages/@rescript/runtime/Stdlib_Array.res +++ b/packages/@rescript/runtime/Stdlib_Array.res @@ -346,6 +346,59 @@ let findMap = (arr, f) => { loop(0) } +let zip = (xs, ys) => { + let (lenx, leny) = (length(xs), length(ys)) + let len = min(lenx, leny) + let s = makeUninitializedUnsafe(len) + for i in 0 to len - 1 { + setUnsafe(s, i, (getUnsafe(xs, i), getUnsafe(ys, i))) + } + s +} + +let zipBy = (xs, ys, f) => { + let (lenx, leny) = (length(xs), length(ys)) + let len = min(lenx, leny) + let s = makeUninitializedUnsafe(len) + for i in 0 to len - 1 { + setUnsafe(s, i, f(getUnsafe(xs, i), getUnsafe(ys, i))) + } + s +} + +let partition = (a, f) => { + let l = length(a) + let i = ref(0) + let j = ref(0) + let a1 = makeUninitializedUnsafe(l) + let a2 = makeUninitializedUnsafe(l) + for ii in 0 to l - 1 { + let v = getUnsafe(a, ii) + if f(v) { + setUnsafe(a1, i.contents, v) + i.contents = i.contents + 1 + } else { + setUnsafe(a2, j.contents, v) + j.contents = j.contents + 1 + } + } + truncateToLengthUnsafe(a1, i.contents) + truncateToLengthUnsafe(a2, j.contents) + (a1, a2) +} + +let unzip = a => { + let l = length(a) + let a1 = makeUninitializedUnsafe(l) + let a2 = makeUninitializedUnsafe(l) + for i in 0 to l - 1 { + let (v1, v2) = getUnsafe(a, i) + setUnsafe(a1, i, v1) + setUnsafe(a2, i, v2) + } + (a1, a2) +} + @send external at: (array<'a>, int) => option<'a> = "at" let last = a => a->get(a->length - 1) diff --git a/packages/@rescript/runtime/Stdlib_Array.resi b/packages/@rescript/runtime/Stdlib_Array.resi index bdcb6086d94..3a0b69bf356 100644 --- a/packages/@rescript/runtime/Stdlib_Array.resi +++ b/packages/@rescript/runtime/Stdlib_Array.resi @@ -1555,6 +1555,61 @@ Array.findMap([], n => mod(n, 2) == 0 ? Some(n * n) : None) == None */ let findMap: (array<'a>, 'a => option<'b>) => option<'b> +/** +`zip(a, b)` create an array of pairs from corresponding elements of a and b. +Stop with the shorter array. + +## Examples + +```rescript +Array.zip([1, 2], [3, 4, 5]) == [(1, 3), (2, 4)] +``` +*/ +let zip: (t<'a>, array<'b>) => array<('a, 'b)> + +/** +`zipBy(xs, ys, f)` create an array by applying `f` to corresponding elements of +`xs` and `ys`. Stops with shorter array. + +Equivalent to `map(zip(xs, ys), ((a, b)) => f(a, b))` + +## Examples + +```rescript +Array.zipBy([1, 2, 3], [4, 5], (a, b) => 2 * a + b) == [6, 9] +``` +*/ +let zipBy: (t<'a>, array<'b>, ('a, 'b) => 'c) => array<'c> + +/** +`partition(f, a)` split array into tuple of two arrays based on predicate `f`; +first of tuple where predicate cause true, second where predicate cause false + +## Examples + +```rescript +Array.partition([1, 2, 3, 4, 5], x => mod(x, 2) == 0) == ([2, 4], [1, 3, 5]) + +Array.partition([1, 2, 3, 4, 5], x => mod(x, 2) != 0) == ([1, 3, 5], [2, 4]) +``` +*/ +let partition: (t<'a>, 'a => bool) => (t<'a>, t<'a>) + +/** +`unzip(a)` takes an array of pairs and creates a pair of arrays. The first array +contains all the first items of the pairs; the second array contains all the +second items. + +## Examples + +```rescript +Array.unzip([(1, 2), (3, 4)]) == ([1, 3], [2, 4]) + +Array.unzip([(1, 2), (3, 4), (5, 6), (7, 8)]) == ([1, 3, 5, 7], [2, 4, 6, 8]) +``` +*/ +let unzip: array<('a, 'b)> => (t<'a>, array<'b>) + /** `at(array, index)` diff --git a/packages/@rescript/runtime/lib/es6/Stdlib_Array.js b/packages/@rescript/runtime/lib/es6/Stdlib_Array.js index a037673ab61..16c1c4d0873 100644 --- a/packages/@rescript/runtime/lib/es6/Stdlib_Array.js +++ b/packages/@rescript/runtime/lib/es6/Stdlib_Array.js @@ -1,5 +1,6 @@ +import * as Primitive_int from "./Primitive_int.js"; import * as Primitive_option from "./Primitive_option.js"; function make(length, x) { @@ -189,6 +190,70 @@ function findMap(arr, f) { }; } +function zip(xs, ys) { + let lenx = xs.length; + let leny = ys.length; + let len = Primitive_int.min(lenx, leny); + let s = new Array(len); + for (let i = 0; i < len; ++i) { + s[i] = [ + xs[i], + ys[i] + ]; + } + return s; +} + +function zipBy(xs, ys, f) { + let lenx = xs.length; + let leny = ys.length; + let len = Primitive_int.min(lenx, leny); + let s = new Array(len); + for (let i = 0; i < len; ++i) { + s[i] = f(xs[i], ys[i]); + } + return s; +} + +function partition(a, f) { + let l = a.length; + let i = 0; + let j = 0; + let a1 = new Array(l); + let a2 = new Array(l); + for (let ii = 0; ii < l; ++ii) { + let v = a[ii]; + if (f(v)) { + a1[i] = v; + i = i + 1 | 0; + } else { + a2[j] = v; + j = j + 1 | 0; + } + } + a1.length = i; + a2.length = j; + return [ + a1, + a2 + ]; +} + +function unzip(a) { + let l = a.length; + let a1 = new Array(l); + let a2 = new Array(l); + for (let i = 0; i < l; ++i) { + let match = a[i]; + a1[i] = match[0]; + a2[i] = match[1]; + } + return [ + a1, + a2 + ]; +} + function last(a) { return a[a.length - 1 | 0]; } @@ -213,6 +278,10 @@ export { toShuffled, shuffle, findMap, + zip, + zipBy, + partition, + unzip, last, } /* No side effect */ diff --git a/packages/@rescript/runtime/lib/js/Stdlib_Array.js b/packages/@rescript/runtime/lib/js/Stdlib_Array.js index bd2340a70cb..9d318f1f065 100644 --- a/packages/@rescript/runtime/lib/js/Stdlib_Array.js +++ b/packages/@rescript/runtime/lib/js/Stdlib_Array.js @@ -1,5 +1,6 @@ 'use strict'; +let Primitive_int = require("./Primitive_int.js"); let Primitive_option = require("./Primitive_option.js"); function make(length, x) { @@ -189,6 +190,70 @@ function findMap(arr, f) { }; } +function zip(xs, ys) { + let lenx = xs.length; + let leny = ys.length; + let len = Primitive_int.min(lenx, leny); + let s = new Array(len); + for (let i = 0; i < len; ++i) { + s[i] = [ + xs[i], + ys[i] + ]; + } + return s; +} + +function zipBy(xs, ys, f) { + let lenx = xs.length; + let leny = ys.length; + let len = Primitive_int.min(lenx, leny); + let s = new Array(len); + for (let i = 0; i < len; ++i) { + s[i] = f(xs[i], ys[i]); + } + return s; +} + +function partition(a, f) { + let l = a.length; + let i = 0; + let j = 0; + let a1 = new Array(l); + let a2 = new Array(l); + for (let ii = 0; ii < l; ++ii) { + let v = a[ii]; + if (f(v)) { + a1[i] = v; + i = i + 1 | 0; + } else { + a2[j] = v; + j = j + 1 | 0; + } + } + a1.length = i; + a2.length = j; + return [ + a1, + a2 + ]; +} + +function unzip(a) { + let l = a.length; + let a1 = new Array(l); + let a2 = new Array(l); + for (let i = 0; i < l; ++i) { + let match = a[i]; + a1[i] = match[0]; + a2[i] = match[1]; + } + return [ + a1, + a2 + ]; +} + function last(a) { return a[a.length - 1 | 0]; } @@ -212,5 +277,9 @@ exports.keepSome = keepSome; exports.toShuffled = toShuffled; exports.shuffle = shuffle; exports.findMap = findMap; +exports.zip = zip; +exports.zipBy = zipBy; +exports.partition = partition; +exports.unzip = unzip; exports.last = last; /* No side effect */ diff --git a/tests/analysis_tests/tests/src/expected/Completion.res.txt b/tests/analysis_tests/tests/src/expected/Completion.res.txt index f5c76f1717e..fd7de69cff5 100644 --- a/tests/analysis_tests/tests/src/expected/Completion.res.txt +++ b/tests/analysis_tests/tests/src/expected/Completion.res.txt @@ -178,6 +178,12 @@ Path Array. "tags": [], "detail": "(array<'a>, ~start: int=?, ~end: int=?) => array<'a>", "documentation": {"kind": "markdown", "value": "\n`slice(array, ~start, ~end)` creates a new array of items copied from `array` from `start` until (but not including) `end`.\n\nSee [`Array.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice) on MDN.\n\n## Examples\n\n```rescript\n[1, 2, 3, 4]->Array.slice(~start=1, ~end=3) == [2, 3]\n[1, 2, 3, 4]->Array.slice(~start=1) == [2, 3, 4]\n[1, 2, 3, 4]->Array.slice == [1, 2, 3, 4]\n```\n"} + }, { + "label": "zip", + "kind": 12, + "tags": [], + "detail": "(t<'a>, array<'b>) => array<('a, 'b)>", + "documentation": {"kind": "markdown", "value": "\n`zip(a, b)` create an array of pairs from corresponding elements of a and b.\nStop with the shorter array.\n\n## Examples\n\n```rescript\nArray.zip([1, 2], [3, 4, 5]) == [(1, 3), (2, 4)]\n```\n"} }, { "label": "fillToEnd", "kind": 12, @@ -268,6 +274,12 @@ Path Array. "tags": [], "detail": "(array<'a>, 'a => 'b) => array<'b>", "documentation": {"kind": "markdown", "value": "\n`map(array, fn)` returns a new array with all elements from `array`, each element transformed using the provided `fn`.\n\nSee [`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) on MDN.\n\n## Examples\n\n```rescript\nlet array = [\"Hello\", \"Hi\", \"Good bye\"]\nlet mappedArray = array->Array.map(greeting => greeting ++ \" to you\")\n\nmappedArray == [\"Hello to you\", \"Hi to you\", \"Good bye to you\"]\n```\n"} + }, { + "label": "zipBy", + "kind": 12, + "tags": [], + "detail": "(t<'a>, array<'b>, ('a, 'b) => 'c) => array<'c>", + "documentation": {"kind": "markdown", "value": "\n`zipBy(xs, ys, f)` create an array by applying `f` to corresponding elements of\n`xs` and `ys`. Stops with shorter array.\n\nEquivalent to `map(zip(xs, ys), ((a, b)) => f(a, b))`\n\n## Examples\n\n```rescript\nArray.zipBy([1, 2, 3], [4, 5], (a, b) => 2 * a + b) == [6, 9]\n```\n"} }, { "label": "with", "kind": 12, @@ -538,6 +550,12 @@ Path Array. "tags": [1], "detail": "(array<'a>, int) => 'a", "documentation": {"kind": "markdown", "value": "Deprecated: \n\n\n`unsafe_get(array, index)` returns the element at `index` of `array`.\n\nThis is _unsafe_, meaning it will return `undefined` value if `index` does not exist in `array`.\n\nUse `Array.unsafe_get` only when you are sure the `index` exists (i.e. when using for-loop).\n\n## Examples\n\n```rescript\nlet array = [1, 2, 3]\nfor index in 0 to array->Array.length - 1 {\n let value = array->Array.unsafe_get(index)\n Console.log(value)\n}\n```\n"} + }, { + "label": "partition", + "kind": 12, + "tags": [], + "detail": "(t<'a>, 'a => bool) => (t<'a>, t<'a>)", + "documentation": {"kind": "markdown", "value": "\n`partition(f, a)` split array into tuple of two arrays based on predicate `f`;\nfirst of tuple where predicate cause true, second where predicate cause false\n\n## Examples\n\n```rescript\nArray.partition([1, 2, 3, 4, 5], x => mod(x, 2) == 0) == ([2, 4], [1, 3, 5])\n\nArray.partition([1, 2, 3, 4, 5], x => mod(x, 2) != 0) == ([1, 3, 5], [2, 4])\n```\n"} }, { "label": "copyAllWithin", "kind": 12, @@ -586,6 +604,12 @@ Path Array. "tags": [], "detail": "(array<'a>, array<'a>) => unit", "documentation": {"kind": "markdown", "value": "\n`pushMany(array, itemsArray)` appends many new items to the end of the array.\n\nBeware this will *mutate* the array.\n\nSee [`Array.push`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push) on MDN.\n\n## Examples\n\n```rescript\nlet someArray = [\"hi\", \"hello\"]\n\nsomeArray->Array.pushMany([\"yay\", \"wehoo\"])\nsomeArray == [\"hi\", \"hello\", \"yay\", \"wehoo\"]\n```\n"} + }, { + "label": "unzip", + "kind": 12, + "tags": [], + "detail": "array<('a, 'b)> => (t<'a>, array<'b>)", + "documentation": {"kind": "markdown", "value": "\n`unzip(a)` takes an array of pairs and creates a pair of arrays. The first array\ncontains all the first items of the pairs; the second array contains all the\nsecond items.\n\n## Examples\n\n```rescript\nArray.unzip([(1, 2), (3, 4)]) == ([1, 3], [2, 4])\n\nArray.unzip([(1, 2), (3, 4), (5, 6), (7, 8)]) == ([1, 3, 5, 7], [2, 4, 6, 8])\n```\n"} }, { "label": "fromIterator", "kind": 12, diff --git a/tests/analysis_tests/tests/src/expected/DotPipeCompletionSpec.res.txt b/tests/analysis_tests/tests/src/expected/DotPipeCompletionSpec.res.txt index 233a6ab806b..d8ab393512e 100644 --- a/tests/analysis_tests/tests/src/expected/DotPipeCompletionSpec.res.txt +++ b/tests/analysis_tests/tests/src/expected/DotPipeCompletionSpec.res.txt @@ -270,6 +270,18 @@ Path u "range": {"start": {"line": 75, "character": 7}, "end": {"line": 75, "character": 8}}, "newText": "" }] + }, { + "label": "->Array.unzip", + "kind": 12, + "tags": [], + "detail": "array<('a, 'b)> => (t<'a>, array<'b>)", + "documentation": {"kind": "markdown", "value": "\n`unzip(a)` takes an array of pairs and creates a pair of arrays. The first array\ncontains all the first items of the pairs; the second array contains all the\nsecond items.\n\n## Examples\n\n```rescript\nArray.unzip([(1, 2), (3, 4)]) == ([1, 3], [2, 4])\n\nArray.unzip([(1, 2), (3, 4), (5, 6), (7, 8)]) == ([1, 3, 5, 7], [2, 4, 6, 8])\n```\n"}, + "sortText": "unzip", + "insertText": "->Array.unzip", + "additionalTextEdits": [{ + "range": {"start": {"line": 75, "character": 7}, "end": {"line": 75, "character": 8}}, + "newText": "" + }] }] Complete src/DotPipeCompletionSpec.res 80:7 From a188c772e18283c23c1d9741112095347ac5e983 Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Fri, 27 Feb 2026 15:15:08 +0100 Subject: [PATCH 12/13] Prepare for 12.2.0 release --- CHANGELOG.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eb5bfd2cd2d..856e6d1e929 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,21 +16,11 @@ - Stdlib: Added Array.zip, Array.unzip, Array.zipBy, and Array.partition. https://github.com/rescript-lang/rescript/pull/8244 -#### :eyeglasses: Spec Compliance - -#### :rocket: New Feature - #### :bug: Bug fix - Fix compiler crash (`Fatal error: Parmatch.all_record_args`) when matching empty dict/record patterns. https://github.com/rescript-lang/rescript/pull/8246 - Fix `null` falling into the object branch instead of the wildcard when pattern matching on untagged variants with both `Object` and `null` cases. https://github.com/rescript-lang/rescript/pull/8253 -#### :memo: Documentation - -#### :nail_care: Polish - -#### :house: Internal - # 12.2.0-rc.1 #### :boom: Breaking Change From 1627bfd3c00999f5ffd77fd4e606034f9bc491fb Mon Sep 17 00:00:00 2001 From: Christoph Knittel Date: Fri, 27 Feb 2026 12:10:20 +0100 Subject: [PATCH 13/13] Fix pkg.pr.new --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aba435cae4..26d41f42923 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -471,6 +471,8 @@ jobs: pkg-pr-new: needs: - build-compiler + outputs: + commit_sha: ${{ steps.publish.outputs.sha }} runs-on: ubuntu-24.04-arm steps: - name: Checkout @@ -497,6 +499,7 @@ jobs: git diff --exit-code packages/artifacts.json - name: Publish packages to pkg.pr.new + id: publish run: | yarn dlx pkg-pr-new publish "." "./packages/@rescript/*" @@ -587,9 +590,9 @@ jobs: - name: Install ReScript package run: | - COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}" + COMMIT_SHA="${{ needs.pkg-pr-new.outputs.commit_sha }}" npm i --no-audit \ - "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}" + "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA}" shell: bash working-directory: ${{ steps.tmp-dir.outputs.path }} @@ -641,8 +644,8 @@ jobs: - name: Install ReScript package run: | - COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}" - pnpm i "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}" + COMMIT_SHA="${{ needs.pkg-pr-new.outputs.commit_sha }}" + pnpm i "https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA}" shell: bash working-directory: ${{ steps.tmp-dir.outputs.path }} @@ -676,8 +679,8 @@ jobs: - name: Install ReScript package in rewatch/testrepo run: | - COMMIT_SHA="${{ github.event.pull_request.head.sha || github.sha }}" - yarn add "rescript@https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA::7}" + COMMIT_SHA="${{ needs.pkg-pr-new.outputs.commit_sha }}" + yarn add "rescript@https://pkg.pr.new/rescript-lang/rescript@${COMMIT_SHA}" shell: bash working-directory: rewatch/testrepo