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

Oh no, we're toast because of PPX usage

We recently moved to ppx-spice from decco in a 500kloc codebase, and it was a pretty good migration! (it’s mostly compatible)

View Article


Oh no, we're toast because of PPX usage

Thank you so much, everyone, for your answers! It was very helpful to discover rescript-schema as an example of an updated PPX project that uses dune directly instead of esy. I’m currently in the...

View Article


Image may be NSFW.
Clik here to view.

Oh no, we're toast because of PPX usage

Hey @zth! I’m making a ton of progress on updating Decco. The challenge I’m facing now is that the transformations it does seem to produce a curried function: Interestingly, the function produced here...

View Article

Shim alternative for genType RescriptCore types

Thanks for taking the time to respond. It looks like per the docs linked above shims have been deprecated and no longer work. I’m using 11.1 and here’s my config: { "name": "app", "sources": [ {...

View Article

Image may be NSFW.
Clik here to view.

Oh no, we're toast because of PPX usage

I did an experiment by writing out an uncurried function in Reason, then using refmt to convert it to ocaml. The resulting code uses the [@u ] decorator in front of the function. I’m guessing then we...

View Article


Quick migration guide to uncurried mode for PPX maintainers?

Are @res.arity and @res.uapp documented anywhere?

View Article

Shim alternative for genType RescriptCore types

This could definitely a bug, the best would be to come up with a simple repro repo and open an issue. Given how widespread is the use of react for rescript users, it’s weird you’re the only one...

View Article

Shim alternative for genType RescriptCore types

I just tested this out in project using the latest versions of rescript and rescript-react and I wasn’t able to reproduce. Here’s the output I have from the button component you shared: /* TypeScript...

View Article


Shim alternative for genType RescriptCore types

I’ve cleaned multiple times. The issue is when using genType on types that require ReScriptCore modules. I believe you couldn’t reproduce b/c your code doesn’t use any of these. I’ll fire up a repro...

View Article


Shim alternative for genType RescriptCore types

Here’s a new repo with the issue: GitHub - painedpineapple/gentype-rescriptcore-bug-repro

View Article

Quick migration guide to uncurried mode for PPX maintainers?

I see that they’re in the Rescript compiler source code. I know the purpose of the @res.arity decorator, to tell the compiler what we expect the arity of the function to be, but I don’t know the...

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

Wohooo ! This is awesome! Does anyone know how to update the default vite set up to support preact instead of react? Example repo would be greatly appreciated!

View Article

Image may be NSFW.
Clik here to view.

Quick migration guide to uncurried mode for PPX maintainers?

I am also converting graphql-ppx right now, and I used some of the examples. I applied the attributes to the function declaration and the application where relevant and it seems to pass tests. I still...

View Article


Image may be NSFW.
Clik here to view.

Quick migration guide to uncurried mode for PPX maintainers?

mrmurphy: @alex.fedoseev the examples you wrote above are in Rescript, but that’s not what your PPX actually does under the hood, right? It seems to me like the PPX runs on the OCaml AST level, after...

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

This may help you, just turn off uncurried mode. ReScript Documentation Build System Configuration | ReScript Language Manual Details about the configuration of the ReScript build system (rescript.json)

View Article


Shim alternative for genType RescriptCore types

It seems clearly the output for the type requiring shims, and alternatives depend on what your needs I can’t find anything like Jsx.element in your code, and the type name is unfamiliar to me, so I...

View Article

[ANN] ReScript v11.1 is out!

vite.config.js import { defineConfig } from "vite"; import preact from "@preact/preset-vite"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [ preact({ include: ["**/*.res.mjs"],...

View Article


[ANN] Type-safe css modules for ReScript

Is this provide functionality similar to vanilla-extract/css? If so, I won’t have to spend time writing bindings for that and having to learn a DSL on top of CSS.

View Article

How to setup a root bsconfig for rewatch?

Running into build issues in a monorepo and I’ve seen rewatch mentioned as a good alternative builder. But the docs only mention running npx rewatch build with a “root bsconfig”, but has no mention of...

View Article

How to setup a root bsconfig for rewatch?

There’s a testrepo folder that has examples config files in it rewatch/testrepo at master · teamwalnut/rewatch · GitHub

View Article
Browsing all 1774 articles
Browse latest View live