rescript-compiler
rescript-compiler copied to clipboard
The compiler for ReScript.
i just inlined a small binding in a file: ``` module Node = { module Fs = { @module("node:fs") external existsSync: string => bool = "existsSync" @module("node:fs") external readFileSync: (string,...
``` module type T = { let foo: string } module F = (X: T, Y: T) => { } module C = F({let foo = "bar"}) C.whatever() ``` gives...
this is a really stupid example that would likely never happen in real-life (but hey, you give a million monkeys infinite amount of time with keyboards...). if it DOES happen,...
i guess this is pretty opinionated of me but to me, it's hard to read: ``` The implementation /src/utils.res does not match the interface ../ocaml/utils.cmi: Values do not match: let...
i would like a `rescript init` command that creates a rescript.json file it should use values from package.json (for e.g. the name field) if one exists, otherwise use sane defaults...
Closes https://github.com/rescript-lang/rescript/issues/7386 Mostly a PoC for now, to see if it was possible to just extend the current mechanisms to this. Feedback appreciated. There are still issues to solve, but...
- Run `rescript watch` - All files compiled, stop the process. - Remove a compiled `.res.mjs` file - Restart `rescript watch` - The removed file is not recreated! This is...
To get the ball rolling, here is a design document authored by Codex.