Skip to content

Commit 9b465d4

Browse files
cknittcristianoc
authored andcommitted
Clarify ReScript licensing
1 parent fbe7a73 commit 9b465d4

133 files changed

Lines changed: 484 additions & 2588 deletions

File tree

Some content is hidden

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

LICENSE

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,11 @@
1-
Copyright (C) 2015-2016 Bloomberg Finance L.P.
2-
Copyright (C) 2017- Hongbo Zhang, Authors of ReScript
1+
This repository contains code under multiple licenses.
32

4-
This program is free software: you can redistribute it and/or modify
5-
it under the terms of the GNU Lesser General Public License as published by
6-
the Free Software Foundation, either version 3 of the License, or
7-
(at your option) any later version.
3+
- compiler/: LGPL-3.0-or-later
4+
- compiler/syntax/: MIT
5+
- packages/@rescript/runtime/: MIT
6+
- rewatch/: MIT
87

9-
In addition to the permissions granted to you by the LGPL, you may combine
10-
or link a "work that uses the Library" with a publicly distributed version
11-
of this file to produce a combined library or application, then distribute
12-
that combined work under the terms of your choosing, with no requirement
13-
to comply with the obligations normally placed on you by section 4 of the
14-
LGPL version 3 (or the corresponding section of a later version of the LGPL
15-
should you choose to use a later version).
8+
See full license texts:
169

17-
This program is distributed in the hope that it will be useful,
18-
but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20-
GNU Lesser General Public License for more details.
21-
22-
You should have received a copy of the GNU Lesser General Public License
23-
along with this program; if not, write to the Free Software
24-
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10+
- LGPL-3.0-or-later: COPYING.LESSER (and COPYING where applicable)
11+
- MIT: LICENSE.MIT
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

3-
Copyright (c) 2020 - Authors of ReScript
3+
Copyright (c) 2015-2016 Bloomberg Finance L.P.
4+
Copyright (c) 2017- Hongbo Zhang, Authors of ReScript
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<p align="center">
1212
<a href="https://www.npmjs.org/package/rescript"><img src="https://img.shields.io/npm/v/rescript?color=brightgreen&label=npm%20package" alt="Current npm package version." /></a>
1313
<a href="https://github.com/rescript-lang/rescript/actions"><img src="https://github.com//rescript-lang/rescript/workflows/CI/badge.svg" alt="Current Github Actions workflow status." /></a>
14-
<a href="https://github.com/rescript-lang/rescript/blob/HEAD/LICENSE"><img src="https://img.shields.io/badge/License-LGPL%20v3-blue.svg" alt="ReScript is released under the LGPL license." /></a>
14+
<a href="https://github.com/rescript-lang/rescript/blob/HEAD/LICENSE"><img src="https://img.shields.io/badge/License-LGPL%20%2B%20MIT-blue.svg" alt="ReScript uses both LGPL and MIT licenses." /></a>
1515
<a href="https://x.com/intent/follow?screen_name=rescriptlang"><img src="https://img.shields.io/badge/X-000000?style=flat&logo=x&logoColor=white" alt="Follow @rescriptlang on X" /></a>
1616
<a href="https://bsky.app/profile/rescript-lang.org"><img src="https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff&style=flat" alt="Follow @rescriptlang on Bluesky" /></a>
1717
</p>
@@ -92,9 +92,14 @@ For discussions on ongoing development, see the [Development](https://forum.resc
9292

9393
## 📄 License
9494

95-
ReScript is licensed under LGPL version 3, with relaxed rules about creating and distributing combined work. See the [LICENSE](LICENSE) file for details.
95+
ReScript uses multiple licenses in this monorepo:
9696

97-
The ReScript parser (subdirectory `compiler/syntax`) is licensed under the [MIT License](compiler/syntax/LICENSE).
97+
- `compiler/`: LGPL-3.0-or-later
98+
- `compiler/syntax/`: MIT
99+
- `packages/@rescript/runtime/`: MIT
100+
- `rewatch/`: MIT
101+
102+
See the repository license index in [`LICENSE`](LICENSE) and full license texts in [`COPYING.LESSER`](COPYING.LESSER) and [`LICENSE.MIT`](LICENSE.MIT).
98103

99104
## 🏅 Acknowledgments
100105

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"JavaScript",
1111
"Language"
1212
],
13-
"license": "SEE LICENSE IN LICENSE",
13+
"license": "(LGPL-3.0-or-later AND MIT)",
1414
"homepage": "https://rescript-lang.org",
1515
"bugs": "https://github.com/rescript-lang/rescript/issues",
1616
"repository": {

packages/@rescript/darwin-arm64/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "13.0.0-alpha.2",
44
"description": "ReScript binaries for MacOS ARM64",
55
"type": "module",
6+
"license": "(LGPL-3.0-or-later AND MIT)",
67
"homepage": "https://rescript-lang.org",
78
"bugs": "https://github.com/rescript-lang/rescript/issues",
89
"repository": {

packages/@rescript/darwin-x64/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "13.0.0-alpha.2",
44
"description": "ReScript binaries for MacOS x86_64",
55
"type": "module",
6+
"license": "(LGPL-3.0-or-later AND MIT)",
67
"homepage": "https://rescript-lang.org",
78
"bugs": "https://github.com/rescript-lang/rescript/issues",
89
"repository": {

packages/@rescript/linux-arm64/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "13.0.0-alpha.2",
44
"description": "ReScript binaries for Linux ARM64",
55
"type": "module",
6+
"license": "(LGPL-3.0-or-later AND MIT)",
67
"homepage": "https://rescript-lang.org",
78
"bugs": "https://github.com/rescript-lang/rescript/issues",
89
"repository": {

packages/@rescript/linux-x64/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "13.0.0-alpha.2",
44
"description": "ReScript binaries for Linux x86_64",
55
"type": "module",
6+
"license": "(LGPL-3.0-or-later AND MIT)",
67
"homepage": "https://rescript-lang.org",
78
"bugs": "https://github.com/rescript-lang/rescript/issues",
89
"repository": {

packages/@rescript/runtime/Belt.res

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,8 @@
11
/* Copyright (C) 2015-2016 Bloomberg Finance L.P.
2+
* Copyright (C) 2017- Hongbo Zhang, Authors of ReScript
23
*
3-
* This program is free software: you can redistribute it and/or modify
4-
* it under the terms of the GNU Lesser General Public License as published by
5-
* the Free Software Foundation, either version 3 of the License, or
6-
* (at your option) any later version.
7-
*
8-
* In addition to the permissions granted to you by the LGPL, you may combine
9-
* or link a "work that uses the Library" with a publicly distributed version
10-
* of this file to produce a combined library or application, then distribute
11-
* that combined work under the terms of your choosing, with no requirement
12-
* to comply with the obligations normally placed on you by section 4 of the
13-
* LGPL version 3 (or the corresponding section of a later version of the LGPL
14-
* should you choose to use a later version).
15-
*
16-
* This program is distributed in the hope that it will be useful,
17-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19-
* GNU Lesser General Public License for more details.
20-
*
21-
* You should have received a copy of the GNU Lesser General Public License
22-
* along with this program; if not, write to the Free Software
23-
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
4+
* SPDX-License-Identifier: MIT
5+
*/
246

257
/*** The ReScript standard library.
268

packages/@rescript/runtime/Belt_Array.res

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
/* ********************************************************************* */
2-
/* */
3-
/* OCaml */
4-
/* */
5-
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
6-
/* */
7-
/* Copyright 1996 Institut National de Recherche en Informatique et */
8-
/* en Automatique. All rights reserved. This file is distributed */
9-
/* under the terms of the GNU Library General Public License, with */
10-
/* the special exception on linking described in file ../LICENSE. */
11-
/* */
12-
/* ********************************************************************* */
1+
/* Copyright (C) 2015-2016 Bloomberg Finance L.P.
2+
* Copyright (C) 2017- Hongbo Zhang, Authors of ReScript
3+
*
4+
* SPDX-License-Identifier: MIT
5+
*/
136

147
/* Array operations */
158
type t<'a> = array<'a>

0 commit comments

Comments
 (0)