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

Image may be NSFW.
Clik here to view.

Applications written in Rescript

GitHub GitHub - m0n01d/yt-widgets Contribute to m0n01d/yt-widgets development by creating an account on GitHub. I also made several videos working through making a Chrome extension with Rescript....

View Article


Image may be NSFW.
Clik here to view.

[ANN] rescript-rest - RPC-like client, contract, and server implementation...

Some progress towards ReScript codegen from OpenAPI Finished adding types for all objects in the OpenAPI v3.1 specification and released rescript-openapi@0.2.0 github.com GitHub -...

View Article


Image may be NSFW.
Clik here to view.

"re-formality", controlling dynamic types for the form module is throwing an...

Hey @alex.fedoseev, I am using re-formality and trying to create input and output types to be dynamic. Here’s a sample code: type shared_input = { name: string, } type shared_output = { name:string }...

View Article

"re-formality", controlling dynamic types for the form module is throwing an...

PPX needs static definitions of these types to generate the actual code, so it can’t be defined dynamically.

View Article

"re-formality", controlling dynamic types for the form module is throwing an...

Thanks @alex.fedoseev,this clarification helps and will unblock me.

View Article


Rescript bindings for Graphql Codegen

Hi @cwstra , First off, brilliant work on the bindings! I cloned the example and tested it with one of our schemas. Everything works smoothly, but I have a question about fragment support. I attempted...

View Article

Rescript bindings for Graphql Codegen

Happy to hear someone’s trying it out! Since we’re using nominal types, things can get a little messy with fragments. Because they can be combined with individual fields or other fragments, the...

View Article

Rescript bindings for Graphql Codegen

I work with tdfairbrother and was pairing with him when we tried this out. It compiles fine, it just breaks on the query call with Invariant violation fragment not found. We do have a query comprised...

View Article


Image may be NSFW.
Clik here to view.

JS API to compile ReScript to JS

This looks extremely interesting, though I am curious how would it integrate with Svelte 5, which adds “runes” for creating signals svelte-5-preview.vercel.app Runes • Docs • Svelte 5 preview Runes •...

View Article


Image may be NSFW.
Clik here to view.

Rescript bindings for Graphql Codegen

Well, the bad news is, my eyes completely skipped over the runtime issue in @tdfairbrother’s initial post; the good news is I noticed the issue when I was comparing outputs to typescript plugins. New...

View Article

Bind in ReScript (not to import JS, but to bind multiple Option or Result)

In scala, we can write the following by comprehension notation. val result = for { a <- Some(1) b <- Some(2) } yield a + b In fsharp, we can use computation expressions. let result = option {...

View Article

Bind in ReScript (not to import JS, but to bind multiple Option or Result)

Rescript does not have a similar specialized syntax for these type of (i.e. monadic) computations. There are some tools to help: If we’re processing a singular piece of data through multiple steps,...

View Article

Bind in ReScript (not to import JS, but to bind multiple Option or Result)

Another alternative using Array: let a = Some(3) let b = Some(5) let result = [a, b]->Array.reduce(0, (acc, opt) => acc + opt->Option.getOr(0))

View Article


Bind in ReScript (not to import JS, but to bind multiple Option or Result)

On this note, while more specific to the option case, also worth knowing about Array.filterMap and Array.keepSome Array.filterMap([1, 3, 5, 7], n => n > 4 ? Some(n) : None) // [5, 7]...

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

v11 API docs doesn’t works. https://rescript-lang.org/docs/manual/latest/api/core

View Article


[ANN] ReScript v11.1 is out!

@days_v in which country are you? It works for me in France.

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

China with Singapore vpn.

View Article


Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

What kind of Chrome-Fork are you using? Is it based on some outdated version by any chance? caniuse.com "toSorted" | Can I use... Support tables for HTML5, CSS3, etc "Can I use" provides up-to-date...

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript v11.1 is out!

Chrome/102.0.5005.200 It seems I need to find a way to switch to a different browser.

View Article

Is there a way to get the name of variant in type

Hi, any way to get a list of type name? type result = | Ok | Error should return string array: ["Ok", "Error"]

View Article
Browsing all 1751 articles
Browse latest View live