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

Image may be NSFW.
Clik here to view.

#value is not allowed in type parameter

avi892nash: type a<'a> = A let strVar: a<string> = A let intVar: a<int> = A type customType = [#customTag] let customVar: a<#customTag> = A Missing brackets: let customVar:...

View Article


Promise of result--why or why not?

I like it! It’s basically a TaskEither. Now it just needs dependency injection and we have the Effect type from ts-effect.

View Article


Output of the code run in the Playground

Another possibility is to group three subtabs under output: console logs, React and JS (and maybe the genType would be the 4th subtab). The current feature of hiding whatever output when there are...

View Article

[ANN] ReScript Retreat Roadmap Summary 2024

Hi, I am working on the IntelliJ IDE plugin and after reading the roadmap, I am worried about the migration from ninja to the new rewatch build system. all Jetbrains editors are buffering the code...

View Article

[ANN] ReScript Retreat Roadmap Summary 2024

I would like to echo that I also would be in favour of having a way to transform a ReScript file to in-memory JavaScript. I mentioned this in Tighter Vite integration · rescript-lang/rescript-compiler...

View Article


[ANN] ReScript Retreat Roadmap Summary 2024

using a stream instead of writing to disk would be perfect, but I.m not doing that, I have to write updates to disk.

View Article

Image may be NSFW.
Clik here to view.

Output of the code run in the Playground

tsnobip: Hi everyone! We’ve recently added the ability to run the code that you wrote in the Playground and to display the logs generated by your code inside a “Console” tab. Displaying the console...

View Article

[ANN] ReScript Retreat Roadmap Summary 2024

Would be worth opening a dedicated thread for IntelliJ support. Feels like you should also be able to use the tools that the VSCode extension is using to provide code completion etc. Also, the new...

View Article


Share something I have been working for a while

Dear all, MoonBit have been public for a while, and we released a very fast JavaScript backend recently, we are also going to ship a native backend this year. If you love ReScript, you probably will...

View Article


[ANN] ReScript Retreat Roadmap Summary 2024

Feel free to hit me up in a DM and we can figure out how to solve that in the IntelliJ integration. Does it already use the language server?

View Article

Image may be NSFW.
Clik here to view.

RescriptRelay with ReScript Core

Sorry for the long delay but I was busy, and I didn’t have time to replicate it properly I assume with Rescript 11 it should be uncurried by default, but I added "uncurried": true, to rescript.json...

View Article

Image may be NSFW.
Clik here to view.

Output of the code run in the Playground

jfrolich: For the stringified output we can perhaps serialize the output in a smarter way than just converting to json directly? well that’s what we do today, we special-case undefined, functions,...

View Article

How can i bind to mongoose

let objectIdString = (): string => %raw(new (require('mongoose').Types.ObjectId)) i want to bind to mongoose.Types.ObjectId function, without using %raw, how can i do it?

View Article


Image may be NSFW.
Clik here to view.

How can i bind to mongoose

I would probably do it like this: module Mongoose = { module ObjectId = { type t @module("mongoose") @scope("Types") @new external make: unit => t = "ObjectId" @send external toString: t =>...

View Article

[ANN] ReScript Retreat Roadmap Summary 2024

Nice, I will DM you. the plugin is not using LSP at all, parsing and resolutions are done purely with java and jetbrains SDK. But syntax/type errors are delegated to the compiler.

View Article


Image may be NSFW.
Clik here to view.

[ANN] ReScript Retreat Roadmap Summary 2024

ryyppy: Depending on the usage patterns in the community, we may be thinking about removing the "in-source": false configuration within rescript.json I run my TypeScript projects with outDir set, on a...

View Article

Basic misunderstanding? (Playground issue?)

I am doing this and expecting “6” to be logged to the console, but I get {} instead (in the Playground). It is so simple and obvious that I am completely stumped as to what I’m missing, but something...

View Article


Basic misunderstanding? (Playground issue?)

Hey, the red {} is just a badly stringified error (this is already fixed in a PR), but this error shows a deeper issue, the Belt and Core libraries don’t get correctly loaded right now, we have to fix...

View Article

RescriptRelay with ReScript Core

The main problem here is unfortunately that 3.0.0 hasn’t been released yet, so the install instructions haven’t been updated to match that version (it’s for 2.0.0 now). Hoping to get it released very...

View Article

Image may be NSFW.
Clik here to view.

This open statement shadows the label

Hello, I often see this warning in my code: I don’t quite get why this is problematic and how to avoid this warning. I think it is pretty common for types to use the same field name. What am I missing...

View Article
Browsing all 1751 articles
Browse latest View live