Switch to rescript-json-combinators#29
Conversation
rescript-tea
rescript-tea-circleci
Switch to rescript webapi
|
New decodeString |
|
New Changes:
Please correct me if I am using it wrong. Before: After:
|
tea_mouse.res
Old New New decodeEvent Couldn't commit these changes, got stuck on this error in test_client_drag.res |
|
This is looking great, thanks.
If there's no tests for the remaining functions, we should probably add tests for them here.
I'm not sure from looking at this what looks wrong. I'd suggest breaking up the nested function call and adding type definitions everywhere you can - that usually resolves it for me. |
New Changes
|
I haven't really run into this before. What's the solution? |
|
Still looking for one. |
|
Yeah, I wasn't clear on this part of rescript. |
Old: New: Couldn't do the same for the two remaining tests.
(Didn't commit the second part, I wasn't sure if it is a right solution) |
|
I asked about converting a function from curried to uncurried and I got that it is just a matter of creating an anonymous function with one calling convention, calling a function with the other calling convention.
|
Yes, I think so |
|
My plan for merging this is to get the darklang repo using this repo instead of the old one, then to test it out to make sure I understand the implications. |
|
Do we want to add this to "bsc-flags" to automatically open the library in order to use Json.Encode and Json.Decode directly? |
Probably not - I think it would be better to be explicit |

tea_html.res
tea_http.res
Replaced Tea_json.decodeValue with rescript-json-combinators decode. I think it does the same thing.
Please correct me if I am wrong.
Tea_json.decodeValue
rescript-json-combinators decode
Other changes