Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Add ReasonML #686

Closed
Qziem opened this issue Feb 2, 2019 · 8 comments
Closed

Add ReasonML #686

Qziem opened this issue Feb 2, 2019 · 8 comments
Assignees

Comments

@Qziem
Copy link

Qziem commented Feb 2, 2019

Hello, I suggest to add language ReasonML. It's quite new but very promising and is becoming more and more popular.
Now, the most popular use is for web application (can be compile to javascript).

@ZielonyBuszmen
Copy link

This is good idea! I sugest to add this language too.

@kazk
Copy link
Member

kazk commented Feb 6, 2019

I think we can use Jest wrapper for testing. If I'm understanding correctly, it'll output tests in JS and regular Jest can be used to run them.

@Qziem
Copy link
Author

Qziem commented Feb 6, 2019

I think yes, I use it exactly the way you wrote.

@kazk kazk self-assigned this Feb 11, 2019
@kazk
Copy link
Member

kazk commented Feb 11, 2019

I got it working with the latest bs-platform and bs-jest. I'm assuming latest ReasonML is v3.0.4 and it's being used. bs-platform 4.0.18 uses Reason 3.3.9

It'll look something like

let add = (a, b) => a + b;
open Jest;

describe("add", () => {
  open Expect;

  test("1 + 1", () =>
    expect(Solution.add(1, 1)) |> toBe(2));
});

Solution will be always put in Solution module (src/Solution.re) because Codewars doesn't allow specifying file names.

@kazk kazk added the status/ready Ready to be deployed label Feb 12, 2019
@Qziem
Copy link
Author

Qziem commented Feb 12, 2019

@kazk
It's great. When can we expect Reason will be available in codewars.com ?

@kazk
Copy link
Member

kazk commented Feb 12, 2019

Maybe next week. I'm doing this on my own time after work so I don't know how much time I can spend.

I'd say it's 95% complete because code runner is done. I just need to update Codewars to let it know about Reason. I still need to find an icon though.

@kazk kazk removed the status/ready Ready to be deployed label Feb 16, 2019
@kazk
Copy link
Member

kazk commented Feb 16, 2019

Reason is now available on Codewars!

Currently there's only Multiply.
Please try it, help translate existing kata, and let me know if you find any issues.

@kazk kazk closed this as completed Feb 16, 2019
@Qziem
Copy link
Author

Qziem commented Feb 16, 2019

@kazk
It's greate ! I tried it and for now seems to work fine !
I will translate some kate in my free time.
Thanks :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants