cometkim / rescript-vitest

ReScript bindings to Vitest
MIT License
42 stars 9 forks source link

Uncurried mode support #26

Open ashton opened 3 weeks ago

ashton commented 3 weeks ago

Hello! I was having issues with uncurried mode set to false (you can check the discussion here). So I had to set "uncurried" to true in my projects, but then rescript-vitest broke :(, so I'm opening this PR to add support to uncurried mode.

As you can see, the way we have the functors defined today generates too much code duplication, I think we can use functors to improve the bindings, but I didn't want to change the code having no relation with the main topic of this PR.

So, if you find it interesting, I can open a new PR with a refactoring to remove the code duplication.

Thanks for your time and your project!

ashton commented 3 weeks ago

cc @cometkim