Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 8 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion compiler/syntax/LICENSE → LICENSE.MIT
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p align="center">
<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>
<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>
<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>
<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>
<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>
<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>
</p>
Expand Down Expand Up @@ -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).

## 🏅 Acknowledgments

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/darwin-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "13.0.0-alpha.2",
"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": {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/darwin-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "13.0.0-alpha.2",
"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": {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/linux-arm64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "13.0.0-alpha.2",
"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": {
Expand Down
1 change: 1 addition & 0 deletions packages/@rescript/linux-x64/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "13.0.0-alpha.2",
"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": {
Expand Down
24 changes: 3 additions & 21 deletions packages/@rescript/runtime/Belt.res
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
17 changes: 5 additions & 12 deletions packages/@rescript/runtime/Belt_Array.res
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
18 changes: 5 additions & 13 deletions packages/@rescript/runtime/Belt_Array.resi
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
26 changes: 4 additions & 22 deletions packages/@rescript/runtime/Belt_Float.res
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 4 additions & 22 deletions packages/@rescript/runtime/Belt_Float.resi
Original file line number Diff line number Diff line change
@@ -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. */

Expand Down
18 changes: 5 additions & 13 deletions packages/@rescript/runtime/Belt_HashMap.res
Original file line number Diff line number Diff line change
@@ -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
Expand Down
26 changes: 4 additions & 22 deletions packages/@rescript/runtime/Belt_HashMap.resi
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
17 changes: 5 additions & 12 deletions packages/@rescript/runtime/Belt_HashMapInt.res
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down
17 changes: 5 additions & 12 deletions packages/@rescript/runtime/Belt_HashMapString.res
Original file line number Diff line number Diff line change
@@ -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 */

Expand Down
26 changes: 4 additions & 22 deletions packages/@rescript/runtime/Belt_HashSet.res
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading
Loading