tx46
tx46
``` module Make: Pattern => { let fmt: event => string } ``` try this in a resi file. i would expect opening brace to be on same line as...
``` switch 0 { // Something something | 0 // Another something | 1 => let foo = 123 doSomethingInteresting(foo) } ``` formats to: ``` switch 0 { // Something...
``` switch "" { | "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" => {a: 1, b: 2, c: 3} } ``` formats to: ``` switch "" { | "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" => { a: 1, b: 2, c:...
right now: ``` @unboxed type t = A(int) | B(int) ``` gives ``` This untagged variant definition is invalid: At most one case can be a number type (int or...
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...
for us non-vs code users, please give us a way to invoke the analyzer from a cli! :(