rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
1. Add [rewatch](https://github.com/teamwalnut/rewatch) to compiler repo + CI + the rescript npm package (as an experimental alternative to bsb) 2. Use rewatch to build the standard libraries (OCaml stdlib, Caml_*,...
This is a feature request. Example of what I mean (using ReScript 11.1.0-rc.5, uncurried mode, ReScript Core, from my work on https://github.com/rescript-association/rescript-core/pull/201): ```rescript let values: array = [String("test"), Number(42.)] //...
I found that @unboxed supports many types, but it does not support ArrayBuffer or TypedArray. ```res @unboxed type dataType = Bin(Js_typed_array2.ArrayBuffer.t) | Json(Js.Json.t) | Text(string) ``` ```res @unboxed type dataType...
Thank you for filing! Check list: - [x] Is it a bug? Usage questions should often be asked in the [forum](https://forum.rescript-lang.org) instead. - [x] Concise, focused, friendly issue title &...
Hi! When switching a project in uncurried mode, it appears that the `@deriving(jsConverter)` are output in curried mode. I'm seing that https://github.com/rescript-lang/rescript-compiler/issues/6492 handed `@deriving(abstract)`, would it be possible to also...
Please see more details here: https://forum.rescript-lang.org/t/string-interpolations-in-raw/871/8?u=jasoons Example: ```rescript %%raw(` // look ma, regular JavaScript! var message = \`\${"hello"}\`; function greet(m) { console.log(m) } `) ``` In rescript 9 this produces:...
https://rescript-lang.org/try?version=v11.1.0&code=DYUwLgBA5uBcEAoBQEIHsAOYCWaB2APAOQBuAhsAK4gB8ANChAH4BmFwARmQMYDW8pCtQC8AfgaomAExAkAYuy58B5KiDEMAlBGE0IgtTsRkATlAAMdZm2CcevDcxnzF9sdt0QApCbIB3BAAiPEpbQM0kJAApAGcAOmA0KGRUGDAU1AhAmKkWQIBaGgBJPDA4lhM0AFsAZTATbDwoQoB5LFw8OKqyDAQAfR09QLJc8IlM6RAWBVslB2zR8ckbOz5hBbzxzS0kIA The issue was caused by the type `defFallback`->`devFallback`. It took me around 20 minutes to figure out what was wrong. I think the error might be better in uncurried...
[This](https://rescript-lang.org/try?version=v11.1.0&code=LYewJgrgNgpgBAISgQwFxwN4Cg51gFzmQCdjkBPdACgHJk4BeAPjgCkBnAOg5ADtP8AGjZcAgqQoCAPHSYBKRiw7d2fAVgC+jTDjgwAHvhjFeyKHABWq3uLKUiE8lOU9++FsxEq1hBnABEAKQAlmAwvPjB+OT+ugQOdtpU4QDG4MbCJMQKnlZ8thRUygXknMDIAA7JvGlhxJmkcnKaQA) causes a compile error that the interface doesn't match the signature even though the types are exactly the same in the error. [Without](https://rescript-lang.org/try?version=v11.1.0&code=KYDwLsBOB2CGA2ACAVgZwPbQIKUrAngFyKy4EA8AUqgHTWY1gB8iAvC9XRtI24gEQBSAJYATYNDDCw+fgCh4wMCTL4+ACgkBjdOMgAaFZACUbFmkw48+dZysEaAW1gAHTdB17DpE8blA) the signature it compiles just fine....
```res let t1 = infinity->Belt.Float.toInt let t2 = infinity->Float.toInt ``` generates ```js import * as PervasivesU from "./stdlib/pervasivesU.js"; var t1 = PervasivesU.infinity | 0; var t2 = PervasivesU.infinity | 0;...