Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

[ANN] ReScript 12 is out!

Thank you for this FANTASTIC and probably most prominent and important ReScript release so far! It’s turning into a mature, stable language with its own identity (and legacy :-)). The effort you put...

View Article


How can we make contributing to ReScript easier?

The treesitter repo doesn’t have a real contribution guide. I would like to support the new regex syntax, but I don’t know, where to start. Do I have to update the grammar or is it enough to add the...

View Article


Image may be NSFW.
Clik here to view.

How can we make contributing to ReScript easier?

nojaf: So my main question: what can we do to improve the new contributor experience? Personally, and I don’t even know if it exists, I’d like a process document such as Adding functionality to the...

View Article

How can we make contributing to ReScript easier?

This is a good point, the repo now has an up-to-date dev container that should allow you to easily spin it from vscode or even a github space on your browser!

View Article

Image may be NSFW.
Clik here to view.

How can we make contributing to ReScript easier?

dkirchhof: Once I wanted to add some types to the core library. Yes, this is very good point. I believe there are two problems here: One is technical, you are expected to be able to build the entire...

View Article


Image may be NSFW.
Clik here to view.

Require Qualified Access for Variants

So, I have something like @unboxed type facing = | @as(true) Up | @as(false) Down let f = v => { switch v { | Up => Console.log("up") | Down => Console.log("down") } } ReScript Documentation...

View Article

Image may be NSFW.
Clik here to view.

New Library: rescript-derive-builder - Automatic Builder Pattern Generation

I’ve been working on a new library that automatically generates fluent builder patterns for ReScript types, and I’d love to get some feedback from the community before continuing development. What it...

View Article

Image may be NSFW.
Clik here to view.

Require Qualified Access for Variants

There’s no exact equivalent of course, but you can get pretty far by putting the type in its own module and just never opening it: module Facing = { @unboxed type t = | @as(true) Up | @as(false) Down...

View Article


New Library: rescript-derive-builder - Automatic Builder Pattern Generation

Side note, but something supporting this type of workflow more first class (generate code from ReScript source) is in the cards for v12+ and something we care about getting right. We’ll talk more...

View Article


New Library: rescript-derive-builder - Automatic Builder Pattern Generation

This is great to hear, keep me informed, and if I can participate, let me know.

View Article

Image may be NSFW.
Clik here to view.

Require Qualified Access for Variants

There are a few things you can do, the simplest being to just choose longer variant names: @unboxed type facing = | @as(true) FacingUp | @as(false) FacingDown let f = v => { switch v { | FacingUp...

View Article

Image may be NSFW.
Clik here to view.

Require Qualified Access for Variants

tsnobip: You can of course put it in a module Even with a separate file that didn’t seem to work. Up was still always directly available. This may be related to the fact that I have a namespace in my...

View Article

[ANN] ReScript 12 is out!

Can we make runtime@12 rc or stable? i have to do pnpm add @rescript/runtime@ci to match the 12.0 release now

View Article


Require Qualified Access for Variants

if you annotate the type of the variant, then you can use the variant without its module name, the compiler won’t enforce you to do it but you can still decide to manually prepend it and it won’t be...

View Article

[ANN] ReScript 12 is out!

good catch @xfcw! It’s now listed as latest and should be kept in sync in the future. I’m curious, what do you use @rescript/runtime for?

View Article


[ANN] ReScript 12 is out!

isn’t @rescript/runtime required now that it was separated from rescript? I tend to do have rescript under devDependencies and @rescript/runtime under dependencies. if I try to build my monorepo after...

View Article

[ANN] ReScript 12 is out!

No no, just use rescript as a dependency like before and it’ll work! Direct use of @rescript/runtime is meant for people developing libraries that are meant to be consumed by js/ts users, this way the...

View Article


@rescript/runtime dependency problems

Are you using isolated installs with your package manager? How does your setup roughly look like?

View Article

@rescript/runtime dependency problems

really? it literally won’t build without it. it’s a pnpm monorepo, one is a lib and one is an app that uses the lib, both are rescript 12

View Article

@rescript/runtime dependency problems

it’s actually vite that fails, the others seem to build fine [vite]: Rollup failed to resolve import “@rescript/runtime/lib/es6/Stdlib.js” from “…/packages/app/src/somefile.res”

View Article
Browsing all 2592 articles
Browse latest View live