rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

The compiler for ReScript.

Results 500 rescript-compiler issues
Sort by recently updated
recently updated
newest added

Here's the reproduction ```rescript type text_tag = | BlockHeading: block_like | BlockText: block_like | BlockImage: block_like type text_like> // good let h = (block: block_like) => { switch block {...

Thanks to the PR https://github.com/rescript-lang/rescript-compiler/pull/6412, we can rename the returned js object key name. But I found little inconsistent with the exisiting `@as` usage on record. ```res type t0 =...

stale

Technically, it is not necessary for an object to be a `Promise` in order to `await` it. Take [the following TS code](https://www.typescriptlang.org/play?target=99#code/MYewdgzgLgBFCm0BcMAKAnEBbAlheAMjgNbwA806OYA5gHwwC8MA3gFAxwAW8YZAKgCVEAVwA2UAIxMYlavQAUHTjHAAzcWpxix8ACYB+FAoUA3AIZiR8FHNoBKJgyGiJ0gD5pMufEVIDhCHEpOkdPETA9eC0wfRhPMHExZXsUDGw8QhJyFyC3BnYVGBw1GAV1TW1dPUdCoph0eCgRdDAvDPwAOkaIEDFTeHKwDTEtHX0FACJJFB4dEEn7ewBuZU4AXxh4MXxWNZVG5tb2n3huxD6BqYAmWe2xBZhzCBhc4MkV-fXlb++2Z4AnmBgDANMCoDhwDAsOZqApaspQJA+mcHjQFOYAO6w2AIaCfThI3q6TpoqZ42DUaDmYHwECldKnSYAGjgiEpkCgNOAdIZ3kyn2UgOBoIiwAhUIAViBqPx2fC9kUibBzDIsTi2dBVkVDi02gADAAkLHMm0xIHQYj0+u1MD+hPA0Bg0tl7MCwRkLrAcug8NtRJRpJA6MmXp9UHdEmKnO5vJOmRZzpl3rdrg51Np9Pj+AJMADJLJ6pwsDDqbyUHsbG+MLhnyAA) for instance: ```typescript const test: PromiseLike = {...

stale

#6380 will be landed in v11. This changes the user's coding experience for the better. So I wonder if the same improvement can be applied to other comma-separated things like...

syntax

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 &...

I've encountered an issue with `Curry._1` in `uncurried` mode. Here's the reproduction example: ```rescript // Utils.res module A = { module B = { let fromString = (string: string): string...

Example code: ```rescript open Js let min = -2147483648 let max = 2147483647 let value = 1000000000 Console.log(min->Int.toFloat -. value->Int.toFloat) Console.log(max->Int.toFloat +. value->Int.toFloat) ``` Output Javascript: ```javascript console.log(1147483648); console.log(-1147483649); var...

discussion: #5725 This PR explores to make the JSX component as an abstract type. As a result of this PR change, the following type definition will cause a build error....

experiment

This is extracted from melange. First commit is a port of [melange-re/melange@`ff9f8ca` (#724)](https://github.com/melange-re/melange/pull/724/commits/ff9f8ca43c600d79147cf0a3d9ba2ef7e3cbd42a) while the second is a refactoring and should be equivalent to [melange-re/melange@`588f276` (#729)](https://github.com/melange-re/melange/pull/729/commits/588f2760fe4f03aedc345b0ba750ad85a20aae4f)

I would like to initiate a discussion on a potential feature: Preserve Mode for JSX expressions. The Preserve Mode is a functionality that, when enabled, maintains the original formatting and...