rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
在使用 build 的 watch 模式时,如果 .res 文件中有 unused variable,compiler 会陷入无限循环的场景。 # Reproduction Repo https://github.com/ninesunsabiu/rescript-proj-tpl # Steps to reproduce ```bash npm install npm run start ``` 如果没有直接触发的话,再一次保存 Demo.res 就可以触发。 有怀疑是 gentype...
For example: ``` type actions = | OneThing(string) | TwoThings(string, int) let thisWorks = AddThings("dogs", 5) let thisWorksToo = "dogs"->OneThing let thisDoesn't = "dogs"->TwoThings(5) ``` I know that constructors aren't...
Never was aware of this file, neither was @cristianoc... global Github search doesn't deliver any results, and the module has been deprecated for [13 months now](https://github.com/rescript-lang/rescript-compiler/commit/82245267ed462dc6cd44806ce59e57501ae7e9ed). I guess it's safe...
`jscomp/others/js_cast.ml` seems to be obsolete. It offers conversion functions from `int` to `bool` and vice versa; probably from a time where booleans where not zero-cost.
As stated in #5361 (rescriptify Belt / Js docs), we noticed that some modules are generated from `cppo.ml[i]` files. That means that some docs will get overridden with the old...
AFAIK, there are react related modules in ReasonML for easy testing, I guess. It seems outdated and causes the build to fail for ppx v4 which annotates the ref type...
As of 2020, the arrow function syntax is widely supported and performance is [almost identical](https://jsperf.com/function-vs-arrow-function), so IMO it's time to switch to this syntax for smaller bundle size. At least...
I put the `lib` dir in `bsconfig.json` and run `build -w`, and the build was run infinitely. ``` "sources": [ { "dir": "lib", "subdirs": true } ], ``` Of course,...
Fail CI otherwise. CC @cknitt E.g. current CI is not clean.
I have a small module to help me create deserializer from JSON while validating the structure received. Basically you define a module with describing your data-schema like this and use...