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 ArticleTrouble migrating decco to rescript11
That library was last updated last year, I don’t think it’ll work fine with rescript@11
View ArticleTrouble 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 ArticleTrouble 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 ArticleTrouble 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 ArticleTrouble migrating decco to rescript11
Make sure installing the latest version 0.2.1-rc.2
View ArticleWIP - @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 ArticleVSCode 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 ArticleAnyone 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 ArticleAnyone 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 ArticleHow 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