Switch path unexpected on optional record with optional fields
Can you show the type of settings?
View ArticleDomain modeling in Rescript - Resources, Patterns?
Here is another article about ReScript and DDD by @nkrkv fullsteak.dev Full-stack ReScript. Architecture Overview Can ReScript be used to create a full-featured back-end? In this article, I’d try to...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Here is a very very basic example of what I do. I actually use CQRS and Event Sourcing, but this matches the majority of DDD examples out there which focus on aggregates. The domain is the truth and...
View ArticleSwitch path unexpected on optional record with optional fields
For sure: type choice<'id> = { label: string, id: 'id, } type getCompareValue<'item, 'compareValue> = 'item => 'compareValue module FilterTypes = { type settings<'item,...
View ArticleSwitch path unexpected on optional record with optional fields
OK I think I understand, the issue is here: type settings<'item, 'compareValue, 'id> = { getCompareValue: getCompareValue<'item, 'compareValue>, initialValue?:...
View ArticleSwitch path unexpected on optional record with optional fields
Ah, okay. So to accomplish what I want I’ll need to make it so the field isn’t optional, or I’ll just have to handle it the way I am now. That makes sense. I guess I didn’t expect the switch case to...
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
Got the ReScript in Zed working! This is just stitching together the GitHub - rescript-lang/tree-sitter-rescript: ReScript parser for Tree-Sitter for grammar and GitHub -...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Awesome examples @fham and @kome! Thank you so much, I spent some time to read them and these were exactly the type of examples I was looking for!
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
Awesome work, thank you! I am very keen to give Zed a try when the LSP works. Keep us updated!
View ArticleWhat can be expected regarding the upcoming React 19 Compiler
In several Blog Posts it was announced that React 19 will include it’s own optimizing compiler. I was wondering how this will fit into the bigger picture in projects that use rescript and didn’t...
View ArticleWhat can be expected regarding the upcoming React 19 Compiler
The core of the compiler is almost completely decoupled from Babel, and the core compiler API is (roughly) old AST in, new AST out (while retaining source location data). Under the hood we use a...
View ArticleAnyone using graphql-ppx and rescript-apollo-client with 11?
Hi Jaap Have you been able to make any progress here? I am trying again (11, uncurried: false) and hitting " The module or file GraphQL_PPX can’t be found." I thought i saw something around here...
View ArticleMinimum cut code relocation?
This compiler is a place where our code is parsed and ast traversed, we can do lots of things with that data that can be the role of the compiler. If you have it as a separate tool, youre repeating a...
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
Great work @KidkArolis!!! About the second problem: the syntax partially loses highlighting as you're typing Does the highlights come from the tree-sitter or the LSP (semantic tokens)?
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
Highlighting comes from the tree-sitter I believe. To be honest - it’s all working pretty well! LSP and the highlighting. LSP does seem a bit slow, but I haven’t done much ReScript in VSCode to be...
View ArticleAnyone using graphql-ppx and rescript-apollo-client with 11?
We are still migrating to 11 without uncurried first (almost there). We were able to compile it though, so with uncurried it shouldn’t be a problem. Did you add graphql-ppx as a dependency as well (it...
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
Very cool! I tried it and it seems to work partly: I need to manually select the language before syntax highlighting shows up The LSP works on a single file, but any file I open next it doesn’t work...
View ArticlePurescript/Typescript To Rescript
Hi Team, I have some Purescript and Typescript files, I wanted to generate interfaces for them in rescript. can anyone tell me the possible approaches to this (any approach PS->RES or TS → RES)?...
View ArticlePurescript/Typescript To Rescript
For TypeScript, there is now ts2ocaml/docs/rescript.md at main · ocsigen/ts2ocaml · GitHub. Not sure if anything like it exists for PureScript.
View Article[ANN] `@rescript/language-server` and `@rescript/tools` released
How are you debugging this? I can see the Zed log, but not the lsp log.
View Article