rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
See https://github.com/rescript-lang/rescript-compiler/issues/6821 Free variables are not allowed in coercion, and if that happens, simple unification is performed without ever attempting coercion. This seems to go back a very long time....
There are two forms of type coercion: 1 `e: t0 :> t` 2 `e :> t` The first form was never supported in .res syntax, and is now removed from...
Originally discovered by a [post on the forum](https://forum.rescript-lang.org/t/variant-unwraping/5350), you can do this today: ``` type baseProps = {"name": string} type props = { ...baseProps, label: string, } let label: props...
I recently discovered that coercion works for variants where everything is represented by the same primitive type: https://rescript-lang.org/docs/manual/latest/variant#coercing-variants-to-primitives This is great, but I have a function that returns one of...
How does the issue come about? We have a codegenerator tool that outputs rescript files unformatted. It then runs `rescript format -all` without running `rescript build` which happens right at...
Hello folks, I'm trying to update one of my package ([repo](https://github.com/softwarefactory-project/re-ansi)) from bs-platform 8.2 to rescript 11, and I get the following error when importing it in a regular javascript...
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 &...