Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

From the documentation of ReScript React, I can declare a component like this: module OptionalChildren = { @react.component let make = (~children: option<React.element>=?, ~children2: React....
Harshal Patil's user avatar
0 votes
2 answers
198 views

I am reading this tutorial https://www.stackbuilders.com/blog/nonsense-getting-started-with-reason-and-reason-react/. One of the problems I am facing is that api.noopschallenge.com is now dead. I ...
Knows Not Much's user avatar
0 votes
0 answers
73 views

Trying to rescript bucklescript-tea and after using rescript convert -all All the files converted except for 2 files that handle http stuff this error showed up Fatal error: Longident.flat Fatal error:...
alice sky's user avatar
1 vote
1 answer
197 views

When exporting a function with more than 1 parameter (2 or more) it throws the following error, which basically says there is an issue with the way we import curry.js. I am attaching an example and ...
Sergio G's user avatar
  • 339
3 votes
1 answer
275 views

I'm exploring ReScript for the first time. I want to build a hashmap using a record type as my key type, and I'm looking for guidance on implementing the hash function. Here's my ReScript code: type ...
Just Jake's user avatar
  • 4,938
0 votes
1 answer
86 views

Is there a numeric suffix I should be using to assign a numerical constant value to an int64 type? A moderately editted version of the error is: We've found a bug for you! {file}.re:321:20-31 321 │ ...
Jamie's user avatar
  • 7,503
2 votes
1 answer
211 views

I am writing a simple application that display dog images from Dog API. I used bs-json to make it a record and use it later. The list of breeds can be obtained by the API. The response looks like this....
Pontakorn Paesaeng's user avatar
2 votes
1 answer
783 views

Given the following contrived example, is it possible to write a get function that can handle any record with an a property? type type_one = {a: int} type type_two = {a: int, b: int} let example_one =...
nickbreaton's user avatar
2 votes
1 answer
311 views

I can't seem to find the correct typing for an infinite list in ReScript. I first tried: type rec stream<'a> = ('a, () => ('a, stream<'a>)) Which was incorrect because ReScript thought ...
Ryan Schaefer's user avatar
2 votes
3 answers
464 views

Say that I have an uncurried function like: let echo(. a) = a; I can call this funcition fine with most literals like: echo(. 1) echo(. "Hello") but when I am trying to call it with void, ...
namesis's user avatar
  • 157
1 vote
1 answer
375 views

I'm trying to decode a JSON array that has the type Js.Json.t (not array(Js.Json.t) apparently). A call to Js.log(jsonList) reveals that it is an array, but I'm not certain how to map over the ...
Jamie's user avatar
  • 7,503
0 votes
0 answers
542 views

I was thinking of making the dev experience as smooth as possible and the feedback loop as short as possible when compiling the Reason+React application. If I use import React from 'react'; in a file,...
Olle Härstedt's user avatar
0 votes
1 answer
464 views

Is there a way to set a dynamic value as a Js.t key in ReScript?
Siraj Kakeh's user avatar
0 votes
1 answer
528 views

Is there a straight forward way to convert a Js.Dict.t like this one Js.Dict.fromArray([ ("bigKey", Js.Dict.fromArray([("smallKey", "value")])) ]) to Js.t like this ...
Siraj Kakeh's user avatar
1 vote
1 answer
369 views

The Goal: Binding to the Service Worker Cache I'm writing a binding to let me write Service Workers in ReScript. String URLs and Requests are sometimes used interchangeably. Where possible, I'm ...
Eleanor Holley's user avatar

15 30 50 per page
1
2 3 4 5
13