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

Trouble migrating decco to rescript11

Is there any reverse syntax which allows using curried mode in some files via @@curried annotation or something similar

View Article


Trouble migrating decco to rescript11

That library was last updated last year, I don’t think it’ll work fine with rescript@11

View Article


Image may be NSFW.
Clik here to view.

Trouble migrating decco to rescript11

npm @greenlabs/ppx-spice ReScript PPX which generate JSON (de)serializer. Latest version: 0.2.0, last published: 6 months ago. Start using @greenlabs/ppx-spice in your project by running `npm i...

View Article

Trouble migrating decco to rescript11

There is also rescript-schema which is very similar to decco when used with the ppx. I’ve been using that with ReScript 11 and can recommend.

View Article

Trouble migrating decco to rescript11

module Common = { @spice type comparator = string // for example } @spice type queryConfig = { comparator: Common.comparator, query: string, threshold: string, time_range: string, } You can configure...

View Article


Trouble migrating decco to rescript11

Make sure installing the latest version 0.2.1-rc.2

View Article

WIP - @jvlk/rescript-future - Functional Futures for ReScript

I did check it out, yes. I’m using the way it handles cancellation as an inspiration.

View Article

VSCode Integration recompiling repeatedly?

Has anyone else witnessed the vscode plug in re-rendering after making a change? I make one change, save, and then watch it blink 3 or four different errors as it resolves? Thanks A

View Article


@jvlk/rescript-future - Functional Futures for ReScript

Cancellation is working and docs are in decent shape with a few basic examples. Published an rc to npm: @jvlk/rescript-future - npm I’m gonna do some dog fooding with an app I am working on to sort...

View Article


@jvlk/rescript-future - Functional Futures for ReScript

Ok, v1.0.0 is published!

View Article

Anyone gotten unit tests working with ES6 modules?

I changed my handle and the link got broken, but it’s 2024 and it’s still the only sane solution to the problem that worked for me. Fixed link: jest+bucklescript.md · GitHub

View Article

@rescript/core: dependency or peerDependency?

Is there an official recommendation on where to put @rescript/core in packages?

View Article

@rescript/core: dependency or peerDependency?

Put it in dependency. You treat it like you would treat helper functions, they are essential to your package to work. I treat peerDeps as optional, so if it’s not optional, in dependencies it goes.

View Article


@rescript/core: dependency or peerDependency?

FWIW There’s a peerDependenciesMeta to define if peer dependency is optional.

View Article

[RFC] Generic JSX transform

For anyone interested in how the generic JSX transform looks in action, ResX (GitHub - zth/res-x: A ReScript framework for building server-driven web sites and applications. Use familiar tech like JSX...

View Article


Anyone gotten unit tests working with ES6 modules?

If you are switching over to Vite I would strongly suggest also switching off from Jest to Vitest. Vitest handles modules in the same way and doesn’t have to compile to commonjs before running the...

View Article

@rescript/core: dependency or peerDependency?

i know, i just don’t find it helpful to make the distinction between optional and not-optional peer dependencies, so I don’t. To me this is a typical example of some dev bubble introducing a concept...

View Article


@rescript/core: dependency or peerDependency?

These are questions to Node/NPM folks, but the existing semantics of the field is different from what you described. The main problem is that it is not enforced.

View Article

@rescript/core: dependency or peerDependency?

Also keep in mind, that I described two parts. A direct answer to where core should go and why, and an extended explanation of how I go beyond that, indicated by me describing how I work with...

View Article

Image may be NSFW.
Clik here to view.

How do you writing bindings today?

Hi there, Recently, I have been asking myself how others deal with bindings. Since BuckleScript, bindings of API like this : const someLib = { exec: () => 4 } someLib.exec() are written in OCaml...

View Article
Browsing all 1958 articles
Browse latest View live